DeathBind
What is it?
This plugin allows your players to bind any item they currently have in their inventory. Binding means that when they die, and they have that item with them, the item will be returned once they re-spawn. The plugin supports damage values and even enchantments. You can configure the maximum amount of items that your players will be able to bind with, and the maximum amount of each item that should be returned when they die. You can even configure every single death circumstance on which the bound items should be returned.
DOWNLOAD!
Feeling generous and want to appreciate the hard work? You can donate using this button. Thank you!
Feature Overview
- Players can bind items
- Players can unbind items
- Players can view bound items and the circumstances in which they keep the items
- Bound items are saved for each player in the savedBinds.txt file - do NOT edit this file unless you know what you are doing!
- Bound items are returned at respawn if the player dies, provided they are in the player's inventory at death and the death circumstance is set to true in the config
- The maximum amount of each item that is returned is specified in the config
- The maximum amount of items that players can bind with is specified in the config
- The plugin removes the drops when the player dies - but only the drops of what is being returned at respawn.
- Example usage:
Ted really loves diamonds. So he takes a diamond, puts it in his hand, and types /bind. Ted goes out on a mining trip to get some more diamonds. He ends up with a total of 100 diamonds - a wealthy sum for one mining trip! Oh no, a creeper sneaks up behind ted! The creeper explodes. Ted cries, because he thinks that he lost all of his beloved diamonds. But wait! He just remembered - he bound his diamond beforehand! Ted hapily respawns and sees that 64 of his diamonds (specified in the config) were returned! The rest (36), however, were dropped where he died (together with all his other junk). Ted stops crying, as keeping 64 diamonds is better than keeping none at all!
On his next mining trip he falls in lava. Ted laughs it off, as he knows he has bound his diamonds, and cannot lose them. But wait! The evil server owner specified in the config that bounding your items doesn't save them from lava contact! Ted loses all of his diamonds. Ted cries ;( He should have checked /bind deaths before being so careless!
Commands
- /bind - binds the current item that you are holding.
- /unbind [ID] - unbinds the item with the specified ID as shown on /bind list.
- /bind list - shows the items you are currently bound to.
- /bind deaths - shows the circumstances in which you can die and receive your bound items, as configured by the server owner.
- /bind help - shows in-game command help.
Permissions
- deathbind.* - Gives you all permissions of the plugin.
- deathbind.use - Allows you to bind, unbind, view bound items, and view the help ingame.
- deathbind.circumstances - Allows you to use the /bind deaths command.
Operators get the deathbind.* node by default.
Notes
- Binding a clean diamond sword, and then dying with, for example, a diamond sword with fire aspect, will NOT return the diamond sword! Each item is unique to its ID, its damage value and its enchantments.
- Items returned will always be correct in respect to their damage value and enchantments. Binding green wool, then dying with green wool, will most definitely return green wool!
Configuration File
#Define either 'true' or 'false' for each of these settings - they specify by what means the player can die and receive their bound items back. #If you can't work out what they mean, go ingame and type /bind deaths. circumstances: BLOCK_EXPLOSION: true CONTACT: true CUSTOM: true DROWNING: true ENTITY_ATTACK: true ENTITY_EXPLOSION: true FALL: true FIRE: true FIRE_TICK: true LAVA: true LIGHTNING: true MAGIC: true POISON: true PROJECTILE: true STARVATION: true SUFFOCATION: true SUICIDE: true VOID: true #Define the number of maximum types of individual items one player can bind. maxAmountOfBinds: 2 #Define how much of each individual bound item will be received once the player dies and respawns. maxAmountOfSavedItems: 64
Change Log
Version 1.0
- Initial Release
I am taking small feature requests and feedback :) And of course, report ALL the bugs!
Update?
omgard update plz and add function to allow worn armor !
can you add in the function to also save worn armor? if the armor is ur inventory, it saves it. but if the armor is not in the inventory and worn on the player, it still drops on the ground
Oh this looks fantastic, I would love if it was updated.
Deathbind does not seem to be working for me, I am running the latest version on 1.3.2.
When using /bind deaths, everything comes up as "yes", however when the player dies he loses the bound item.
I have checked the config and files are indeed being saved for players when they use the command.
What could be wrong, and what information do i need to provide so that you may help me find a fix? Thanks.
Update this plugin please...
Is it going to update for 1.3 thanks
I am currently very busy with another plugin, but as soon as that is done I will do a rewrite of this + add many of the requested features.
Yes, Yes, Yes! I heartily agree with Lightwave8! The fact that you can't bind tools and have them return after use is causing a lot of ruckus on my server. I find it hard to believe this wasn't a part of the original concept.
Feature Request: Config file to define items that ignore damage values
What i mean is that you define an item in that file and the plugin checks you had an item of that ID and it preserves the damage on it.
I've been having issues where I bind a tool, use it, and then the bind doesn't work for it
EDIT: I'm using Tekkit, which is probably why it's being weird for me, but it would be cool to add in custom items as tools.
Feature requests: PvP specific circumstance Per-user configurable maximum binds
@pablo746
You need to either give yourself OP or install a permissions system and give the correct permission nodes to whoever you want.
@pablo746
im not sure
@pablo746
what do i do
it says i don't have permission to bind
@Zombiemold
Hmm, I may have to look into this. Can you give me the error it throws?
Deathbind doesn't seem to know how to save items/weapons that have irregular enchantments.
There are quite a few plugins out now that allow for "unsafe" enchantments, and even give them special functions.
Would love to see support for this.
For instance, we have a sword that has unbreaking on it, which of course is not typical. The enchant works, and functions exactly how you would expect it to, but Deathbind can't bind it, and throws an error.
@bigazzaman
This is going to be done in the form of a permission node, like deathbind.limit.X where X = limit of the amount of items you can bind.
another feature request:
the max amount of items that you can bind is different for different permission groups.
ex. user can only bind 2 items but a premium can bind 4
edit. i didnt see the comment further down the list but this is similar
@tronty
I can do the first suggestion. I'm not sure about the 2nd one, it's not really the purpose of the plugin but I'll see if I can implement it.