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
Great plugin. I use it in 1.12 now that DeathControl is no more updated.
How do we remove the messages in the tchat after we died ? If I put '', there's still a blank. And there's 2 repetitive messages :/
In reply to Forge_User_37808113:
In reply to Forge_User_37808113:
In reply to ChuckDoll:
ExampleGroup:
retain percentage: 50
delete percentage: 0
check first: save
per-stack-check: false
blacklist:
- '35:7'
- '273'
whitelist:
- '276'
- '25'
base:
retain percentage: 15
delete percentage: 0
check first: save
per-stack-check: false
blacklist:
- '3'
whitelist:
- '347'
and I gave the "idc.group.base" perm to my players. Simple.
If you want more help, PM me.
Great plugin! Working good in Spigot 1.12.
Regards.
dupe whitelisted items from death type: fall.
items back doubled after death
Completely broken on 1.9.4
It's not working all my INVENTORY AND XP will drop
help me!
Hi How do you configure the plugin in order to delete all items on death exept the ones whitelisted ? i installed it and changed the config to <<code Groups: ExampleGroup: retain percentage: 0 delete percentage: 0 check first: save per-stack-check: false blacklist: - '35:7' - '273' whitelist: - '276' - '25' Default values: retain percentage: 0 delete percentage: 0 xp loss: 0>>
<</code>> but when i die all my inventory drops and i keep none of the whitelisted ones
thanks
It does not work on Spigot 1.7.2 Can you compile it with Spigot 1.7.10 :c?
This is a very useful plugin. Are you going to keep it updated?
any progress on this?
@Staartvin
ok, so i still can't get the percentages to work, but at least i know why i was keeping my xp every time. i forgot that the character i was testing on had the "essentails.keepxp" permission. which was why i kept all my xp every time.
Non the less i still cant get the XP or items percentages to work. every time i die i completely lose them both and retain no amount regardless of settings.
@marubal21
Hmm, I'm going to do some testing with your config to see if I can get it working.
@Staartvin Current config: http://pastebin.com/wbnH8TNF
OK,so i did what you said, and now i do not get the error message on console anymore. But, i't still not working correctly.
Example 1: Using the default values without the "idc.group.legend" node, when i die i lose all my items as expected but i also keep all my xp, which i thought i would lose all of it.
Example 2: With the "idc.group.legend" permission on myself, when i die i still lose all my items and keep all of my xp. i was expecting to keep 80% of item and xp, or am i not understanding the plugin?
@marubal21
The error is being thrown because you have an invalid blacklist/whitelist. If you don't want to use a blacklist or whitelist, you just remove the whole world and its hyphen. If you remove those, it should work.
Here is my config.yml file: http://pastebin.com/TUCfjWRm
Error log: http://pastebin.com/64hJGjL3
While using the config provided, and with the "idc.group.legend" permission, when i die i keep all my xp and lose all my items, i get the same results when i don't have the "idc.group.legend" permission and just using default.
@marubal21
Yes, it should still work.
Is this plugin still being supported? does it work on 1.7.2+?
Please, use vault for getting player groups.