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 May 20, 2013@shadvalentine
I can't add your wanted feature, but I'm adding something different which you should like.
-
View User Profile
-
Send Message
Posted May 20, 2013@Staartvin
so .. I am guessing being you did not respond to my post that means you don not want to .. or are unable to add this feature?
-
View User Profile
-
Send Message
Posted May 19, 2013@Qentus
@deathhzone
Sorry for this really late message. I'm working on it right now.
-
View User Profile
-
Send Message
Posted May 9, 2013this looks like a great plugin .. I was wondering if you could set it up so that people could carry "death Items" meaning we could set an item in the config that if you have that item it will take the place of 1 of your items that would have dropped.
On my server the ender dragon respawns .. so I would like to be able to set it so if you carry 10 dragon eggs you will keep 10 of your items and lose the 10 eggs .. it was kind of like this on a game I used to play .. but the drop items were based on value
Edit:
maybe even make it so it is a different item for armor, tools and weapons this way if they want to keep everything they have to carry more then 1 stack
Edit Again:
also wondering if you can add some penalty like slow or weak maybe make this configurable
-
View User Profile
-
Send Message
Posted Apr 30, 2013@Qentus
Same. Please fix.
-
View User Profile
-
Send Message
Posted Apr 26, 2013Hi, armor is never being kept on death with idc.keepallitems and it even isn't dropped on the ground... Can you do anything with it?
-
View User Profile
-
Send Message
Posted Apr 11, 2013@Emcitement
Oh ok, no problem ;)
-
View User Profile
-
Send Message
Posted Apr 11, 2013I have no desire to use permissions on a server where I play with one other person. I'll just look at the other plugins. Thanks though!
-
View User Profile
-
Send Message
Posted Apr 11, 2013@Emcitement
This plugin is based on permissions. If you don't have a permission group installed, it will just work like vanilla. You should download a permission plugin such as Permissionsex, bPermissions or GroupManager.
-
View User Profile
-
Send Message
Posted Apr 11, 2013by default, all this plugin does is make no items appear when dying but still losing them. definitely not drop and play. how do I set this up? I haven't done permissions in like 2 years so I don't even remember how. attempted to set up a group in permissions to use but it didn't do anything different. still losing all my stuff.
I play with just one friend so we never use permissions. We just want to keep our items on death but lose our exp. Using /gamerule keepInventory true makes us keep our stuff but we keep exp too. Want to lose exp in order to have a proper death penalty.
-
View User Profile
-
Send Message
Posted Apr 6, 2013@Staartvin
this happen.
2013-04-06 02:15:08 [INFO] NicoR was slain by Zombie Pigman 2013-04-06 02:15:10 [SEVERE] Could not pass event PlayerRespawnEvent to Inventory Drop Chance v1.2.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.v1_5_R1.PlayerList.moveToWorld(PlayerList.java:418) at net.minecraft.server.v1_5_R1.PlayerList.moveToWorld(PlayerList.java:375) at net.minecraft.server.v1_5_R1.PlayerConnection.a(PlayerConnection.java:1134) at net.minecraft.server.v1_5_R1.Packet205ClientCommand.handle(SourceFile:30) at net.minecraft.server.v1_5_R1.NetworkManager.b(NetworkManager.java:292) at net.minecraft.server.v1_5_R1.PlayerConnection.d(PlayerConnection.java:113) at net.minecraft.server.v1_5_R1.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R1.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_5_R1.MinecraftServer.r(MinecraftServer.java:580) at net.minecraft.server.v1_5_R1.DedicatedServer.r(DedicatedServer.java:225) at net.minecraft.server.v1_5_R1.MinecraftServer.q(MinecraftServer.java:476) at net.minecraft.server.v1_5_R1.MinecraftServer.run(MinecraftServer.java:409) at net.minecraft.server.v1_5_R1.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.NullPointerException at Staartvin.InventoryDropChance.IDCEvents.returnItems(IDCEvents.java:187) at Staartvin.InventoryDropChance.IDCEvents.onPlayerRespawn(IDCEvents.java:133) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 16 more 2013-04-06 02:15:11 [INFO] GroupManager - INFO - Data files refreshed. 2013-04-06 02:15:12 [INFO] There are 6/1 out of maximum 24 players online. 2013-04-06 02:15:12 [INFO] Arena: aronanis, Francisco, [HIDDEN]karim090, Kino10, naputoxxx, NicoR, SolarsWTF 2013-04-06 02:15:13 [INFO] [AlphaChest] auto-saved 1 chests 2013-04-06 02:15:15 [INFO] CONSOLE: Enabled level saving.. 2013-04-06 02:15:15 [INFO] CONSOLE: Forcing save.. 2013-04-06 02:15:15 [INFO] CONSOLE: Save complete. 2013-04-06 02:15:21 [INFO] <NicoR> Eee, karim perdi todo cuando mori!!! 2013-04-06 02:15:23 [INFO] Francisco was slain by Zombie Pigman 2013-04-06 02:15:23 [INFO] <GoA SolarsWTF> genial tengo otra cabeza mas jaja 2013-04-06 02:15:26 [INFO] NicoR was slain by Zombie Pigman 2013-04-06 02:15:48 [INFO] Francisco was burnt to a crisp whilst fighting Zombie Pigman 2013-04-06 02:15:50 [INFO] There are 6/1 out of maximum 24 players online. 2013-04-06 02:15:50 [INFO] Arena: aronanis, Francisco, [HIDDEN]karim090, Kino10, naputoxxx, NicoR, SolarsWTF 2013-04-06 02:15:52 [INFO] <NicoR> Perdi todo cuando mori recien!!! 2013-04-06 02:16:04 [INFO] karim090 issued server command: /invsee aronanis 2013-04-06 02:16:10 [SEVERE] Could not pass event PlayerDeathEvent to Inventory Drop Chance v1.2.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_5_R1.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:332) at net.minecraft.server.v1_5_R1.EntityPlayer.die(EntityPlayer.java:284) at net.minecraft.server.v1_5_R1.EntityLiving.damageEntity(EntityLiving.java:765) at net.minecraft.server.v1_5_R1.EntityHuman.damageEntity(EntityHuman.java:683) at net.minecraft.server.v1_5_R1.EntityPlayer.damageEntity(EntityPlayer.java:349) at net.minecraft.server.v1_5_R1.Entity.x(Entity.java:335) at net.minecraft.server.v1_5_R1.EntityLiving.x(EntityLiving.java:317) at net.minecraft.server.v1_5_R1.Entity.l_(Entity.java:248) at net.minecraft.server.v1_5_R1.EntityLiving.l_(EntityLiving.java:515) at net.minecraft.server.v1_5_R1.EntityHuman.l_(EntityHuman.java:158) at net.minecraft.server.v1_5_R1.EntityPlayer.g(EntityPlayer.java:215) at net.minecraft.server.v1_5_R1.PlayerConnection.a(PlayerConnection.java:352) at net.minecraft.server.v1_5_R1.Packet10Flying.handle(SourceFile:136) at net.minecraft.server.v1_5_R1.NetworkManager.b(NetworkManager.java:292) at net.minecraft.server.v1_5_R1.PlayerConnection.d(PlayerConnection.java:113) at net.minecraft.server.v1_5_R1.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R1.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_5_R1.MinecraftServer.r(MinecraftServer.java:580) at net.minecraft.server.v1_5_R1.DedicatedServer.r(DedicatedServer.java:225) at net.minecraft.server.v1_5_R1.MinecraftServer.q(MinecraftServer.java:476) at net.minecraft.server.v1_5_R1.MinecraftServer.run(MinecraftServer.java:409) at net.minecraft.server.v1_5_R1.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.ArrayIndexOutOfBoundsException: 36 at Staartvin.InventoryDropChance.IDCEvents.onPlayerDeath(IDCEvents.java:91) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 25 more 2013-04-06 02:16:10 [INFO] Francisco was burnt to a crisp whilst fighting Zombie Pigman 2013-04-06 02:16:12 [SEVERE] Could not pass event PlayerRespawnEvent to Inventory Drop Chance v1.2.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.v1_5_R1.PlayerList.moveToWorld(PlayerList.java:418) at net.minecraft.server.v1_5_R1.PlayerList.moveToWorld(PlayerList.java:375) at net.minecraft.server.v1_5_R1.PlayerConnection.a(PlayerConnection.java:1134) at net.minecraft.server.v1_5_R1.Packet205ClientCommand.handle(SourceFile:30) at net.minecraft.server.v1_5_R1.NetworkManager.b(NetworkManager.java:292) at net.minecraft.server.v1_5_R1.PlayerConnection.d(PlayerConnection.java:113) at net.minecraft.server.v1_5_R1.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R1.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_5_R1.MinecraftServer.r(MinecraftServer.java:580) at net.minecraft.server.v1_5_R1.DedicatedServer.r(DedicatedServer.java:225) at net.minecraft.server.v1_5_R1.MinecraftServer.q(MinecraftServer.java:476) at net.minecraft.server.v1_5_R1.MinecraftServer.run(MinecraftServer.java:409) at net.minecraft.server.v1_5_R1.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.NullPointerException at Staartvin.InventoryDropChance.IDCEvents.returnItems(IDCEvents.java:187) at Staartvin.InventoryDropChance.IDCEvents.onPlayerRespawn(IDCEvents.java:133) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 16 more
-
View User Profile
-
Send Message
Posted Apr 6, 2013@karim090
Can you post the whole error.
-
View User Profile
-
Send Message
Posted Apr 5, 2013SEVERE Could not pass event PlayerRespawnEvent to Inventory Drop Chance v1.2.1
:/
that make crash the server
-
View User Profile
-
Send Message
Posted Apr 2, 2013@Staartvin
Cant wait. ;)
-
View User Profile
-
Send Message
Posted Apr 1, 2013@DerekZil
I can do that. This is quite some work, though. It will take its time ;)
-
View User Profile
-
Send Message
Posted Apr 1, 2013@TheElm
Haha that's what I said, a way to protect donator items.
To make it easier maybe he can add a lore finder to kit items. The plugin will check the lore message on an item. (Setup /kits with the lore.) When it found the lore it will not drop but delete the item, or keep it. (Both options in config?) Or actually maybe let the item drop, but only players with the permission to pick up the lore item to get it.
Also if he can, I would love to make it not droppable (Toss on ground.) with a certain lore is on it, helps the economy greatly.
For example: Line 1: Diamond Sword, Line 2: Donator Item. (Cannot be traded or dropped.)
-
View User Profile
-
Send Message
Posted Mar 23, 2013@karim090
The latest release is working with 1.5 as far as I know.
-
View User Profile
-
Send Message
Posted Mar 23, 2013@Staartvin
is this relase working in bukkit 1.5? or there is a way to update it?
-
View User Profile
-
Send Message
Posted Mar 21, 2013@TheElm
I might, i don't know if it is possible to do due to the way my plugin is set up. I'll try ;) @karim090
I'll add a reload command.
-
View User Profile
-
Send Message
Posted Mar 21, 2013the plugin is graeat. very useffull and work well. can u add reload command?