DeathBukkit
DeathBukkit
General
DeathBukkit allows players items' to be preserved after death, so that they can be recovered. Specifically, when a player dies with death chests/signs enabled (see the "Use" section below), a chest will be created at the death point, containing the items which were in the inventory of the player prior to being dead (this is highly configurable). A sign will also be created (again, configurable), indicating who the owner of the chest is, as well as the time and date when they died. Right-clicking on this sign will automatically recover the chest's contents, and destroy the chest.
While several other "death chest" plugins do already exist, they are all either out-of-date or abandoned. This plugin is intends to supersede those plugins.
A server owner could easily change the configuration file and customize timings such that:
A chest will be inaccessible by only the dead player for X minutes. A chest will break after Y minutes.
News
DeathBukkit Release v1.0.1
DeathBukkit v1.0.1 is a huge update. It adds multiple commands, different chest types, many bugfixes and better permissions system. It was the product of a lot of effort and consists of more than 1,409 new lines of code.
DeathBukkit Release v0.3.0
DeathBukkit v0.3.0 re-adds the ability to make chests exist of an infinite amount of time (no expiry). It also stops chests from "auto-expiring" when the sign is clicked and the player's inventory is filled.
DeathBukkit Release v0.2.1
DeathBukkit v0.2.1 fixes a potential TileEntity CCE.
Use
Configuration
Just drop the plugin in your plugins directory and next time the server is run it will automatically generate it's config file for you. The 2 options in the plugin config file are self explanatory (seconds until unlock and seconds to expiration) and the defaults are:
- unlockAfter: 0
- expireAfter: 0
A value of zero indicates that the chest should unlock/expire immediately and a value less than zero indicates that the chest should never unlock/expire. Any other value is a time in seconds.
Types
DeathBukkit uses a type-based system for extra configurability. Chest types can be configured per player and define what happens when a player dies. You set a player's chest type by giving them the permission "deathbukkit.type.<name of type>" (e.g. to the set "grave" type a player should be given the "deathbukkit.type.grave" permission). If no chest type is set for a particular player, that player will not have a chest created for them.
Currently, three different death chest types exist, and they are listed below. The order of this list matters. If a player has more than one chest type set, DeathBukkit will ignore all but the type that appears first on this list.
Name | Description | Image |
---|---|---|
grave | Creates a sign at the place of death containing information about the player's death including time of day. By right-clicking the sign, items can be retrieved. | View |
doublechest | Creates two chests containig the entire contents of the player's inventory. It is located at their place of death and also includes a sign, similar to "grave". | View |
singlechest | Creates a single chests containig as much of the player's inventory that can fit. Extra items are dropped on the ground. It is located at their place of death and also includes a sign, similar to "grave". | View |
Commands
Please Note: Commands may also be prefixed with the alias /deathbukkit instead of /db.
Name | Description |
---|---|
/db | Displays your number of chests. |
/db loc | Alias for "/db loc 1". |
/db loc <num> | Displays chest <num>'s location. |
/db tp | Alias for "/db tp 1". |
/db tp <num> | Teleports you to chest <num>. |
/db reload | Reloads the config file. |
Permissions
Please Note: Wildcard *s are valid in permission nodes (e.g. "deathbukkit.commands.*" grants access to all permissions beginning with "deathbukkit.commands.").
Name | Description |
---|---|
deathbukkit.command.status | Permits "/deathbukkit" |
deathbukkit.command.loc.first | Permits "/deathbukkit loc" |
deathbukkit.command.loc.any | Permits "/deathbukkit loc <num>" |
deathbukkit.command.tp.first | Permits "/deathbukkit tp" |
deathbukkit.command.tp.any | Permits "/deathbukkit tp <num>" |
deathbukkit.command.reload | Permits "/deathbukkit reload" |
deathbukkit.type.grave | "Grave"-style DeathBukkit chests should be created for this player |
deathbukkit.type.doublechest | "Double chest"-style DeathBukkit chests should be created for this player |
deathbukkit.type.singlechest | "Single chest"-style DeathBukkit chests should be created for this player |
Media
By: VariationVault
By: luigi_vampa
Download
The latest plugin build can be downloaded here.
Latest Changes
- Fixed config parsing
- Fixed config loading
- Added death sign
- Fixed armor loading
- Fixed serious chest inventory reading bug
- Fixed potential TileEntity CCE
- Re-added the ability to make chests exist of an infinite amount of time (no expiry)
- Stops chests from "auto-expiring" on click
- Added /db, /db loc and /db tp commands
- Added chest type permissions
- Added "grave" chest type
- Added "single" chest type
- Improved code modularization
- Fixed config parsing bug (can't set unlockAfter to infinite when expireAfter is finite
- Overall better code and code cleanup
Planned Features
- More customizable options - Feel free to suggest anything!
How Can I Help?
This plugin is developed solely by me in my free time so:
- If you are a developer would like to contribute to this project, or any of my other projects, please PM me or email me at [email protected].
- If you are a not developer but would still like to contribute somehow, please consider donating. Donations are highly valued and much appreciated.
About
Developer: Keeley Hoek (escortkeel)
Everyone on my server likes this mod. You don't need to carry chests or signs which is nice. When you die it puts a sign on the chest so no one can take your stuff. The chest will go away after whatever time you set for it. You can die in the air, water, lava and ground and your death chest will be there. The only complaint I get is that a creaper will blow up the death chests as you die. You go back to where you got blown-up and there will be 2 chests and a sign floating on the ground with your things. Even with that problem, my server guests still rather have this death chest plugin than that others we have tried. That being said :) Is there a way you can make creapers not destroy the death chest when it blows-up a player? Thank you!
@robotnikthingy
Sorry to sound rude, but how about you maintain a plugin for 2 years before saying such a thing. :)
Life isn't Minecraft, some people have other things they must take care of.
Also developers are not your slaves, be happy they take the time to make these plugins for everyone to use.
Awesome, great to see someone made an alternative to the decaying and abandoned DeathTpPlus. Please keep this updated unlike the makers of that plugin
Great plugin exactly what we need on the server. Thanks!
Can you make the signs/chests protected?
lovely, please add the optionj to only set the chests if the player is carrying chests
ie.
#require chests to drop items in a chest.
reqchests: true
if the player has 1, then single chest, drop rest of gear on ground, if player has 2 chests then double chest and fill it.
etc etc
I have been using DeatTPPlus for a while, but even it's dev builds spam out errors in the server log. We plan to switch to a plugin, like yours as it has the basics that we need.
One feature that we are looking for that yours does not have. Create a death chest if the player does have a death chest.
Question: If a player retrieves all the loot from the chest before it expires, does the chest vanish, or does it stay until it expires? I don't want players to die multiple times just to get free chests.
@LiLChris06
Yep that is it. I was using the death signs instead of the chest...
Does this mod not work if I don't have "Permissions"?
I'd also like to report a bug.
I've been getting reports on my server that a deathchest can replace obsidian. This is a problem for netherportals, especially in the nether, because it breaks the portal and people cannot get back to the main world.
Found a bug. Under Bukkit 1.4.7-R1.0:
If you die, it appears only a sign, no chests. Sometimes a item disappers :/ Sry my english isn't very well, i'am german :)
Found a bug/issue.
If someone dies next to a dispenser, the dispenser is destroyed to make room for the chest. The dispenser is re-created when the chest goes away, but the contents of the dispenser is not restored.
@mystic221
Are you using Graves (signs) or Chests?
It's been reported that grave signs are having an issue with armor.
Hey guys,
This plugin works great! However yesterday I was testing with the new bukkit recommended build released yesterday and everything worked as it should except armor disappeared. I am running the lastest 1.0.1 build of deathbukkit too. Anyone else having the same issue?
@LiLChris06
Oh, thank you for the recommendation, perhaps we'll have a look at that as well. Granted, DB seems really compact and has almost all the functionality I need. Just a couple picky things I would like to see added.
@Zephedge
Wow, that hasn't been updated in a while.
If you need Dynmap support then I suggest DeathTpPlus, but honestly you really could just give them the perm to do /db loc and its much easier than having to go look at a map for your chest.
So far I'm impressed by DB. I've been thinking about transferring from Cenotaph to Deathbukkit because it's so buggy, and after trying it I believe we definitely will convert.
I just have one suggestion, which is a feature that Cenotaph has that DB doesn't. I would love to see Dynmap support, so that it shows a chest icon, or some visual indicator of the Deathchest on Dynmap (configurable, since I'm sure not all servers would want this function).
Edit: Was just testing your plugin for bugs, and was throwing myself off a height. Managed to get a sign to be created in mid-air. I would assume this is NoCheatPlus' fault, because it attempts to compensate for cheaters blocking falling damage. Although this kind of thing can happen because of lag, keep this in mind in case other people complain about floating graves.
Also, the plugin seems to create graves even when the player didn't have any items to drop. I would also like to suggest a way to prevent empty graves from being created.
@Mortalsinn
I know that error but haven't experienced it myself nor has anyone else. (75+players online)
Again I am only using Single/Doublechest I don't know about Graves, someone else pointed out a bug with it so be warned if you are using it, might have other issues too.
@LiLChris06
nope, no errors at all in the server console anyways. It's the same type of crash as happens with World Edit when you cut something or paste something really large and you blue screen everyone around you with in 50 blocks.
@Mortalsinn
Any errors in the console?