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 Jul 8, 2013@shadvalentine
1.5.2 here and am having the same issue, except items that are dropped are deleted.
-
View User Profile
-
Send Message
Posted Jul 6, 2013I just installed 1.4.1 and have a problem .. I have a group that keeps 75% .. the plugin tells me that 75% was saved .. however .. my inventory is empty .. the other 25% is left on the ground
OK .. did some testing .. if it tell it to delete 1% then it works correctly ... however if I tell it to delete 0% then everything that is "kept" gets deleted ..
The screen shot below was taken after dying with a full inventory and full set or armor .. after I died I had nothing left on me .. and 25% left where I died
-
View User Profile
-
Send Message
Posted Jul 5, 2013@deathhzone
You would have to whitelist the armor id with the damage value and enchant value for the donor group. Go lookup minecraft enchantment damage values.
-
View User Profile
-
Send Message
Posted Jul 5, 2013I drop my inventory (not hotbar, not armor, but inventory when i die) even when retain percentage is 100% and i have the permission, this is a big issue for me and i hope that this fix comes before 1.6.2, thanks
-
View User Profile
-
Send Message
Posted Jul 5, 2013Is it possible to put enchanted items on the whitelist? Like if my players bought donor armor, and i wanted to make it so the "prot 5" armor doesn't drop (it would also have to support impossible enchants), but ONLY the armor with prot 5, but i still want normal items to drop, is that possible?
-
View User Profile
-
Send Message
Posted Jul 5, 2013@wydgabriel
You want certain items to never drop? Use the whitelist.
-
View User Profile
-
Send Message
Posted Jul 4, 2013Can you add a config that dont have any chance to drop equiped items like chest, legs, boots and helmet?
Thanks!!!!
-
View User Profile
-
Send Message
Posted Jul 4, 2013@xMCPlay
Thank you!
-
View User Profile
-
Send Message
Posted Jul 4, 2013@MasterMithrandir
The duplicate experience is a bug with other plugins. If other plugins change the amount of experience a player has, IDC will use that amount. You should check for other plugins (such as Essentials) that may cause this. Whenever a player logs out, the player is considered a leaver. It won't get its items back. I can make this configurable if you want me to.
I hope you'll want to upgrade to 1.4. Lots of bugs have been fixed since. If you are still experiencing bugs, report them to me so I can solve them for you.
-
View User Profile
-
Send Message
Posted Jul 4, 2013This plugin has been causing me many bugs since I added it to my server. I can't list all the problems this plugin has caused me, mainly because most of them are not concretely defined, mainly what I'm getting is a lot of complaints because inventories dissapear or world guard flags sometimes are completely ignored.
Some problems I have been having:
- Setting experience % drop per groups makes experience ''duplicate'' when dying - Setting per group inventory drop percentages does not work in some ocasions - Items are lost completely randomly sometimes when loging out.
I must admit, my version of this plugin might be a bit outdated, and I'm updating it right now, but I just wanted to list all these bugs as information. Not really complaining :) good job with the plugin anyways.
-
View User Profile
-
Send Message
Posted Jul 4, 2013@xMCPlay
Yeah, this is basically it. Thanks for helping him out. Someone is already making a video about it that should be done soon.
-
View User Profile
-
Send Message
Posted Jul 4, 2013@DJxOwNaG3
PermissionEx my config: http://pastebin.com/M6J9UjFh Inventory Drop Chance my config: http://pastebin.com/7xy0Te24
-
View User Profile
-
Send Message
Posted Jul 4, 2013@Staartvin
Ok Thanks for your information :)
-
View User Profile
-
Send Message
Posted Jul 3, 2013@Staartvin
Yeah man I have tried to make my own groups but every time i reload the server the example group comes back a wrecks every thing plz make a tutorial.
-
View User Profile
-
Send Message
Posted Jul 2, 2013@Staartvin
Ok
-
View User Profile
-
Send Message
Posted Jul 2, 2013@DJxOwNaG3
There will be soon.
-
View User Profile
-
Send Message
Posted Jul 2, 2013@Staartvin
I am that much of a noob I don't even know how to use all of the group permissions and stuff. Is there any good tutorials on youtube how to do that?
-
View User Profile
-
Send Message
Posted Jul 2, 2013@DJxOwNaG3
Have you reloaded and given them the proper permissions? 'idc.group.<groupname>'
-
View User Profile
-
Send Message
Posted Jul 2, 2013@Staartvin
I changed the percentage is the group but when a player dies 50% of their items are still kept.
-
View User Profile
-
Send Message
Posted Jul 1, 2013@DJxOwNaG3
You can change the any percentage in the config. Give them the permission for the group you have configured and you're good to go. You can specify a percentage in a WorldGuard region as well. You'll have to do /region flag <region> retain-percentage <amount>.