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)
@googlebuscus
I'm uploading images now. :)
What's the grave look like?
@LiLChris06 @Wolf314151 @datacrypt @valmartman @googlebuscus @The_Bias_P11 @Skelebro @jimm0thy @Chemical_Datas
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.
Some of the new major additions are:
Thank you all for your continued interest in the project,
Regards,
Keeley :)
A new build release is imminent. It contains tons of features (all of the stuff that you guys have requested)! I'll test/upload it in the morning. Expect way more news then. :)
@escortkeel
I assume its dropping a chest inside those plugin areas, which if it is maybe it should be an option in the config.
Ignore build rights: true/false
If true it will drop a chest even if you can't build, if false it will not drop a chest if you can not build.
That should solve it for safezones, worldguard, hungergames, etc. As the chest should not drop in any of those places if the player can not build.
No, thank you for making this. :)
@LiLChris06
Thanks for being so patient with the permission node stuff. I've implemented your request but I have one question; do you want the extra items to be dropped on the ground?
Thanks,
Keeley
@datacrypt
Hi datacrypt!
Firstly, thanks for all of the suggestions, they are appreciated. I'll go through each and respond.
What exactly do you mean by "MobArena Support" and "MyHungerGames Support"? Does this plugin throw exceptions when those other plugins are installed? If not, what unintended behavior occurs?
Adjust it to be more of a "grave" then a chest. i.e. store inventory inside the sign itself.
Config option coming right up!
Again, thanks for the suggestions,
Keeley
@Wolf314151
Not a single problem with DeathTpPlus, though most people don't bother getting the dev builds.
I am just waiting for a certain permission node for single/doublechest to be added so it goes live.
@datacrypt
If your hunger games is in another world, just remove/negate the perm to drop a chest.
deathbukkit.active
As for Mob Arena I thought this denied a chest if you can't build in the area.
Thank you, been using deathtpplus and all it does is spew out errors. I really needed an update for something like this. Thanks,
@escortkeel
Suggestions:
@googlebuscus
It's in the works! :D
@valmartman
Great Ideas! :) I'll fix the bug you mentioned, implement chest saving to data files, and investigate EXP saving methods.
@googlebuscus
Hi GoogleBuscus!
I have actually put hours of time into testing possible solutions to the issue you've described. The problem ultimately was that there may not actually be and valid places that the chest could be re-located, so I settled with a solution which always works. When a player dies and the location where the sign is going to be placed is already filled by another block, DeathBukkit will always temporarily replace that block (say, a chest) with the sign. Once the chest expires the block will be changed back to what it was originally.
@escortkeel
Hmmm, maybe like /chestloc # and make the chests number themselves. I also saw something in the comments about chest limitations. If you can do the numbering system and the command have a number syntax that might work perfectly!
BUG: When a player dies near any block that block get's destroyed and overwritten by the deathchest. Can you maybe make a failsafe that will move the chest away from any adjacent blocks that can get destroyed by chest making process. Thanks!
I downloaded this plugin, and while testing I noticed that when I stop and then restart the server, all the deathchests are removed and the items sit on the ground as drops. Any way to keep them in place instead? Also, when I set the value for chest expiry in the config to -1 it auto-sets the unlock time to -1 as well, I have to set the expiry to a finite time in order to allow the chest to be looted by others. Also, is there a chance we could have XP saved as well as items?
@LiLChris06
@googlebuscus
I think I can add these two features at the same time! Hold on!
I really like this plugin's functionality, but it would be great if we could customize strings, colors, and [DeathBukkit], which is a rather long prefix.
@escortkeel
Maybe set a limit of how many chests you can have before the last one expires.
1. Player dies, has chest A
2. Player dies again has chest B
3. Configuration allows for 2 max
4. Player dies again, chest A disappears and chest C appears.
Something along those lines maybe? O.o
@Skelebro
@LiLChris06
Added/Fixed in v0.3.0. :D