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
-
View User Profile
-
Send Message
Posted Aug 14, 2013@Staartvin
Well I also have the '*' permission in PEX, Is it possible that that's also giving me the "donor" group permission, and that's what's dropping the items? But even then.. in my case the items are getting deleted, not dropped..
I just tested it again, I had 2 swords and a stick in my hotbar, was wearing an iron chestplate, and an apple in my inventory, and 9 levels. I got a player to kill me, I didn't drop anything, my levels stayed, but the stick and apple had disappeared. and it said in chat all my items survived my death, and there were no errors in console, oh, and in my permissions, I have the idc group guard, and the idc group default, inheriting from my default rank.
-
View User Profile
-
Send Message
Posted Aug 14, 2013@Staartvin
Thanks, any idea when this will be expected? Just want to know if it's worth me figuring out how to decompile/compile the default values I want for now.
-
View User Profile
-
Send Message
Posted Aug 13, 2013@Staartvin
Argh. They're getting like 50-70 levels on random deaths for no reason, I don't think it's IDC though.. :( I don't know what to do to fix it
-
View User Profile
-
Send Message
Posted Aug 13, 2013@deathhzone
I don't know why this happens. You should really just have a test server where you remove all plugins except IDC and run it to check if it works without other plugins.
-
View User Profile
-
Send Message
Posted Aug 13, 2013@deathhzone
When a player has idc.keepallitems, all items are kept. It does not do any other stuff.
-
View User Profile
-
Send Message
Posted Aug 13, 2013People occasionally are dying, and receiving XP, Like they'll die with idk.. 14 levels, and respawn and have 72, Is there any chance this could be this plugin? Cause this is a huge issue.. and if you wouldn't mind could you check the plugin list I gave you, maybe spot a plugin that might be doing this? Thanks
-
View User Profile
-
Send Message
Posted Aug 12, 2013@Staartvin
OtherDrops simply changes the drop block of mining a block, I use it to make snow drop a snow block to not lag the server
EDIT: Is it possible that having both the keepallitems permission, and the group permission with 100% retain is causing an issue?
-
View User Profile
-
Send Message
Posted Aug 12, 2013@poiuyt580
That version is soon to be released.
-
View User Profile
-
Send Message
Posted Aug 12, 2013@deathhzone
It might be OtherDrops, although I am not sure. You should test this on a server with only IDC as plugin and try if it works correctly. If it does, then there is plugin compatibility issues.
-
View User Profile
-
Send Message
Posted Aug 12, 2013@Staartvin Where can I download the version with the individual % per stack?
-
View User Profile
-
Send Message
Posted Aug 12, 2013@Staartvin
Hmm.. Could any of my other plugins cause it? Here they are: http://gyazo.com/01532e838226df715f078d704845b280
-
View User Profile
-
Send Message
Posted Aug 10, 2013@Abdulkawi
Yeah, I'll add a 'default-value' option that you can set to anything you like.
-
View User Profile
-
Send Message
Posted Aug 10, 2013@Staartvin Yeah,
The values used when they are not in any of the specified groups is "50%" (hard-coded into the plugin). I'd like to be able to change that value via the cfg file, for each setting.
-
View User Profile
-
Send Message
Posted Aug 10, 2013@deathhzone
I've tested it and it doesn't remove them. I keep the books. They do not get deleted. Can you test some more to get more specific cases?
-
View User Profile
-
Send Message
Posted Aug 9, 2013@robotnikthingy
Well, I don't want to make features already have. It might be good to contact a developer of deathchest plugins and tell your problems/errors.
-
View User Profile
-
Send Message
Posted Aug 9, 2013Could you add an option for items to be put in a chest where the player died? No death plugins work consistently for me except for this one
-
View User Profile
-
Send Message
Posted Aug 8, 2013@Abdulkawi
What do you mean by default values? Do you mean the numbers returned when a player is not in a group?
-
View User Profile
-
Send Message
Posted Aug 8, 2013Just a small request,
Can you please make the default values (not in any of the idc.groups) be editable in the config file, rather than have them hard-coded? It's a problem for me since I use primary/secondary groups (conflicts).
Eg: Primary: admin - idc.group.default Secondary: vip - idc.group.vip
I'd rather just set idc.group.vip and have default values without creating a default idc.group
-
View User Profile
-
Send Message
Posted Aug 7, 2013@Staartvin Yes sir I'll take it, it's probably more lightweight :D
-
View User Profile
-
Send Message
Posted Aug 7, 2013@deathhzone
I've been working on IDC for the past few days. I'll get working at the bug ASAP.