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 7, 2013Any info on that update Staartvin?
-
View User Profile
-
Send Message
Posted Aug 7, 2013@poiuyt580
Oh well, I've already finished making it. It is done. I'll keep it in if you ever decide to come back ;)
-
View User Profile
-
Send Message
Posted Aug 7, 2013Edit: Never mind, found a plugin that can do this. For the way you initially intended the plugin to work though, it's working perfectly.
-
View User Profile
-
Send Message
Posted Aug 7, 2013@Staartvin
That is correct. If you are able to make this I would definitely appreciate it, as it's a core feature of my server.
-
View User Profile
-
Send Message
Posted Aug 7, 2013@poiuyt580
This is not possible with the system I use, but I can try to make it nevertheless.
You want it so 50% retain percentage will keep 50% of each stack rather than 50% of all stacks. If you have 10 stacks of 64 diamond, it would keep only 50% of each stack. When you die, you will keep 32 diamonds of each stack.
Is this right?
-
View User Profile
-
Send Message
Posted Aug 6, 2013Is it possible that the drop chance goes based on the actual number of items in the inventory? So say if I have a stack of diamonds and I have a 50% retain percentage, I only get 32 diamonds back? Instead of it being based on actual inventory slots. Right now it seems that if I die with 65 diamonds I drop one diamond since the stack counts as one item, but I want it to count as 64.
-
View User Profile
-
Send Message
Posted Aug 2, 2013@deathhzone
I guess I have some more work to do.
-
View User Profile
-
Send Message
Posted Aug 2, 2013@Staartvin
I've tested with 1.4.3, and I had iron boots equipped, a semi full hotbar of items, and a few duplicates of a written book in my inventory. (By the way, I used the exact same config as when I used 1.4.2 and no errors on startup) and when I was killed by a player, I kept my XP, I kept my hotbar, and I kept my boots, but the books in the inventory were deleted. Not sure if it's because they were actual written books or the issue isn't fixed yet though.
-
View User Profile
-
Send Message
Posted Aug 2, 2013@deathhzone
I have found the problem and fixed it. A new version (containing the fix) is on the way!
-
View User Profile
-
Send Message
Posted Aug 2, 2013@deathhzone
I'll get testing then.
-
View User Profile
-
Send Message
Posted Jul 30, 2013@Staartvin
Ok, so I've set my config to this: http://pastebin.com/9Ljh8zRf
I checked the console, no errors on startup.
I gave myself idc.group.guard
I held a stone in the 1st slot of my hotbar. 1 leather in around the 5th slot of my hotbar. I put 3 sticks in random places inside my actual inventory. And I wore boots.
When a player killed me while I was in survival, I kept the stone and boots. Nothing dropped on the ground. It said "All items have survived your death", but it seemed the sticks and leather disappeared. I believe I had /give n myself the sticks and leather (This was tested a few minutes after a server restart) after the restart, and place them randomly, while I believe the stone and boots I had in my inventory BEFORE the restart. Not sure if this could cause a glitch or not, just giving all the information in the interest of getting this fixed.
-
View User Profile
-
Send Message
Posted Jul 30, 2013@Staartvin
If I want no whitelist or blacklist, how would I put that?
-
View User Profile
-
Send Message
Posted Jul 30, 2013@deathhzone
Your black and whitelists are causing this problem. Itemid '0' is recognised as air by Bukkit. You should remove all entries from whitelist and blacklist that you don't want to use. That should fix the problem.
-
View User Profile
-
Send Message
Posted Jul 30, 2013@Staartvin
http://pastebin.com/W4QL2rgM
-
View User Profile
-
Send Message
Posted Jul 30, 2013@deathhzone
Can you show me your config? I'll test it on my server with your config.
-
View User Profile
-
Send Message
Posted Jul 25, 2013I've tested the new update 1.4.2, and the glitch remains. My character has the perm: idc.group.guard which I set to keep 100% of items, and not drop any items. But when I got a player to kill me I kept my hotbar and armor only, but not my actual inventory. And the inventory seemed to have deleted, not dropped, please fix this.
-
View User Profile
-
Send Message
Posted Jul 24, 2013@Staartvin
I left you a PM with the details, a few days ago. You told me it might have to do with essentials compatibility.
-
View User Profile
-
Send Message
Posted Jul 24, 2013@rsmKaelub
Haha, that's great! Happy birthday!
-
View User Profile
-
Send Message
Posted Jul 24, 2013Thanks for the update! Of all the days to update: on my birthday!
I'll let you know of anything out of the ordinary, should it arise.
-
View User Profile
-
Send Message
Posted Jul 24, 2013@MasterMithrandir
What is your problem exactly?