Inventory Drop Chance
Inventory Drop Chance
Version: v1.6
(Follow me on Twitter for updates!)
Inventory Drop Chance is a plugin created by Staartvin from a request by DerekZil.
Do you want to your server to be a little more RPG-ish? Are people frustrated by losing items on death?
Well, then Inventory Drop Chance (IDC for short) is something for you! IDC allows admins to set a percentage of retained items on death. The retain percentage is configurable. When a player dies, x% of his/her inventory will be given back. The items that are not given back are dropped on the ground. All items get chosen randomly. This is to prevent players from cheating. You can also specify a delete percentage. IDC will then remove a percentage of the inventory (Those items aren't dropped nor given back). IDC also has custom WorldGuard flags that can be used. These flags are: 'xploss-percentage', 'retain-percentage' and 'delete-percentage'. You can also setup blacklisted or whitelist items. In short, this plugin is super customisable.
Features:
- Can give players x% of their dropped items back.
- Can delete a percentage of their inventory on death.
- Very lightweight
- Extremely simple
- Drop and play
- Permissions
- Multiworld support
- Group based (Example: Give a donor rank 20% loss, but a noob group 100% loss)
- WorldGuard integration (Custom flags 'retain-percentage' and 'delete-percentage')
- Whitelist and blacklists (Some items will always be dropped, some are always kept)
- Automatic version checking
Permissions:
- - idc.group.<groupname> A player with this permission is bound to a group. All percentages are based on a group. If a player hasn't got this permission, it will lose all their xp and items. Just like vanilla Minecraft.
- -idc.keepallitems A player with this permission will retain all of his items when (s)he dies.
- -idc.keepxp A player with this permission will keep all their xp.
- -idc.noticeonupdate A player with this permission will get noticed when a new version of IDC is available.
Commands:
- None yet
Pictures:
Messages shown when a player respawns
Donations
I'm a poor student and I'm developing this plugin in my free-time, if you like my plugin and want to help me, please donate. Donating is the best way to help me out, it goes towards more bug-fixing. Thanks! Donate is in the top right corner. ;)
Donators
Thanks to all the people who donated and downloaded this plugin! I love you all! <3 Especially thanks to my donators who gave me that little boost:
- WayGroovy with 5 dollars
- RsmKaelub with 10 dollars
- deathhzone with 5 dollars
Please updated to 1.7.2, there are some changes in PlayerDeathEvent that cause problems running this on 1.7.2, there is item duplication bug after death.
@Staartvin
I can't remember If I have ever tested your plugin on it's own. I should do it and see if it still gives trouble.
@MasterMithrandir
Hmm, very odd. Can you try using IDC without Essentials? I know Essentials is the problem, but I'm trying to make a workaround for Essentials.
@Staartvin
I negated the permission ''essentials.keepxp'' on ALL of my groups, I will report If this has any effect.
Should it fix worlg guard areas with flag: ''xploss-percentage 0'' Not working?
Edit: Sadly I tested this and it had no effect :C
It seems that Essentials is bugging the hell out of the exp module. I fixed it by negating the essentials.keepxp permission. Try and let me know if that fixed the exp bugs.
One of the most important plugins on my server. Allthouugh it is also the one I get more bug reports from my players. Most common reported bug with it is that the plugin is not able to preserve inventory if a player dies and logs out or closes his/her client.
Good job Staartvin, but I still don't find this plugin to be fixed... All details on this ticket: http://dev.bukkit.org/bukkit-plugins/inventory-drop-chance/tickets/7-whitelisted-items-bug-simply-does-not-work/
Very good Plugin echo is the only grabbing this, but would be better That message Probabilities are editable or can be drawn to me are those messages inesesarios Chance. Thanks :)
Hey, very nice plugin! It's really cool.
Would you mind checking out my suggestion whenever you got time? (http://dev.bukkit.org/bukkit-plugins/inventory-drop-chance/tickets/6)
Thank you!
@rsmKaelub
Thank you for the kind words ;). I'll be trying to find a way to fix it.
@Staartvin
I'll still be using Inventory drop chance for the inventory chances. I don't know what I'd do without it. I just wanted to clarify: This plugin is awesome, I will be using it indefinitely, and you are awesome!
@rsmKaelub
Okay, thank you. Have a good time!
I'm probably going to move to experiencemod plugin to address the issue for experience. I think I have the exp thing solved:
Apparently, according to the experiencemod plugin author aadnk, spigot is slightly different with experience, therefore, he has a fix on his dev build (not sure if you can see the source code for it). Since we are running mcpc+ 1.5.2 and mcpc+ is a "bukkit-forge" made by md5 (same dev for spigot), I am to assume it is that to blame.
Sidenote: For some reason, I haven't checked on all the plugins you had made or taken over. There is a good chance I'll be using most of them and quite possibly asking for a slight bit of customization.
Keep up the good stuff!
still getting this error .. have not figured out why ..
2013-10-26 03:57:52 [INFO] [Inventory Drop Chance] WorldGuard custom flags can be used! 2013-10-26 03:57:52 [INFO] Added custom flag "xploss-percentage" to WorldGuard. 2013-10-26 03:57:52 [SEVERE] Error occurred while enabling InventoryDropChance v1.5.1 (Is it up to date?) java.lang.NullPointerException at com.mewin.WGCustomFlags.FlagManager.addCustomFlag(FlagManager.java:76) at com.mewin.WGCustomFlags.WGCustomFlagsPlugin.addCustomFlag(WGCustomFlagsPlugin.java:246) at staartvin.inventorydropchance.worldhandler.WorldGuardHandler.registerFlags(WorldGuardHandler.java:35) at staartvin.inventorydropchance.InventoryDropChance.onEnable(InventoryDropChance.java:51) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugin(CraftServer.java:284) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.enablePlugins(CraftServer.java:266) at net.minecraft.server.v1_6_R3.MinecraftServer.l(MinecraftServer.java:315) at net.minecraft.server.v1_6_R3.MinecraftServer.f(MinecraftServer.java:292) at net.minecraft.server.v1_6_R3.MinecraftServer.a(MinecraftServer.java:252) at net.minecraft.server.v1_6_R3.DedicatedServer.init(DedicatedServer.java:152) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:393) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
@rsmKaelub
Sorry for my late reply. I don't know why the experience bug is happening. I know that Bukkit handles experience 'in a bad manner'. Bukkit and exp doesn't work well with eachother. I've tried to fix it, but I'm almost certain it is not a problem with my code. It could however, be a problem with interference of other plugins. When I test it, I always get the correct amount.
@t2wave
Yes, it is required to use the WG flags. I've already put a message on the right of your screen.
Does the WG flags require WorldGuard Custom Flags? If so, might want to add that note.
@aceyxx
Yes, it does.
does this work for 1.6.4?
@rsmKaelub
You should always try to be up to date. I'm not sure what is causing this.
@rsmKaelub
Disable any exp% that you may have configured. Same happens to me, on all versions (including latest)