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 Jan 19, 2013Im getting this error on player death event
2013-01-19 22:01:14 [WARNING] [Inventory Drop Chance] Task #2567 for Inventory Drop Chance v1.2 generated an exception
java.lang.NullPointerException
at Staartvin.InventoryDropChance.IDCEvents$1.run(IDCEvents.java:120)
at org.bukkit.craftbukkit.v1_4_6.scheduler.CraftTask.run(CraftTask.java:53)
at org.bukkit.craftbukkit.v1_4_6.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:530)
at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494)
at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
-
View User Profile
-
Send Message
Posted Jan 3, 2013Anyway you could add a config for Worlds to use this plugin or ignore it.
Like in an Arena world or something like that.
-
View User Profile
-
Send Message
Posted Jan 2, 2013@WayGroovy
In the new version 1.2, WorldGuard integration has been added. Have fun!
-
View User Profile
-
Send Message
Posted Jan 1, 2013@BrandonAest
@WayGroovy
I've uploaded a new version which has groups based on permissions. For example: If you have a group called 'AwesomeGroup', the permission for the group is 'idc.group.AwesomeGroup'. This allows admins to set different percentages per group!
Also, I fixed the bug where players lost all their items and xp when the reconnected after they had died.
We just need to wait for Bukkit to approve it!
-
View User Profile
-
Send Message
Posted Jan 1, 2013@BrandonAest
Not yet, but I can implement this feature.
-
View User Profile
-
Send Message
Posted Jan 1, 2013Any way to add another drop chance permission node so players of different ranks can have different drop chances.
Example Players could have 50% drop Donors could have 30% drop Admins could have 60% drop
-
View User Profile
-
Send Message
Posted Dec 31, 2012@TheAtreidius
I'll see what I can do. ;)
-
View User Profile
-
Send Message
Posted Dec 31, 2012@WayGroovy
Hmm, I need to test this. This is a bug from the plugin, although this should never happen. Thanks for reportimg, I'll take a look!
-
View User Profile
-
Send Message
Posted Dec 31, 2012Currently if a player logs out or hits main menu after dying, and then logs back in, their inventory is 100% cleared.
Any ideas on how to prevent this from happening?
-
View User Profile
-
Send Message
Posted Dec 31, 2012I would like to request the ability to attach a drop percentage to a WorldGuard region. Thanks for this great plugin!
-
View User Profile
-
Send Message
Posted Dec 21, 2012@WayGroovy
The donate button is in the right corner above the 'search' bar.
-
View User Profile
-
Send Message
Posted Dec 21, 2012@WayGroovy
The donate button is in the right corner above the 'search' bar.
-
View User Profile
-
Send Message
Posted Dec 21, 2012@WayGroovy
Sorry, I fixed it for you ;)
-
View User Profile
-
Send Message
Posted Dec 20, 2012Wait, status planning, yet file version 1.0? does this function?
-
View User Profile
-
Send Message
Posted Dec 20, 2012I see no donate button. I will donate.
-
View User Profile
-
Send Message
Posted Dec 19, 2012Make this and I will love you Forever