DeathChest
DeathChest v1.13
Features
DeathChest is a Plugin for controlling the death of a Player. Each Player can set his DeathChest somewhere in a world. If he dies, his inventory will be transferred to this chest. You can also set packages of worlds for which the Inventory will be transferred to. A Player can therefore only place one DeathChest in one World-Package.
For example: Player a has the save inventory in world c and world d. His DeathChest is located in world c. He dies in world d. His inventory will be transferred to the DeathChest in World c.
There is also the possibility to place a chest at the death of a Player. The DeathChest created by the player will always be preferred to the SpawnChest on his death location. The SpawnChest can be activated by giving the Player the Permission: deathchest.spawnchest
There is an alternative to the SpawnChest: The Grave Yard signs. When a player dies, a sign is spawned at his death location. If the player destroys it again, his Items and part of his exp will be dropped. It can be changed between Grave Yard Signs and SpawnChests, changeing the option in the config.yml.
If you want weather SpawnChests nor Grave Yard Signs, just set the Config option to: plugin.General.useDeathSpawnType: 'none'
There are also several config-options to limit the transfer to the DeathChest.
HOWTO:
How do I actually create a DeathChest?
This is simple. You just have to create a Sign above a Chest or a DoubleChest with the Letters: "deathchest" (not case sensitive) in any line of a Chest. After placing this sign, the DeathChest will be created and the first line will be filled with your name, the third line will be filled with the worldname the chest is in. (creating a DeathChest needs the Permission: deathchest.signedchest.create, saving your Inventory after you died to this chest needs the Permission: deathchest.signchest.saveto or just simply: deathchest.signchest.use (includes the permission to build, too))
With the Permission: deathchest.signchest.create.other a player can create a DeathChest of another person. Therefore line 0 has to be: "deathchest", line 1 has to be the Name of the Player.
A little guide is located at the Images: link
Commands
Detailed information can be found under Pages -> Commands link
- /dchelp: a short overview over the commands in DeathChest
- /dcreload: reloads the configuration of DeathChest
- /dcversion: displays the Version of DeathChest
- /dcpermcheck: checks all permissions of you and display them
- /dcport: ports to your DeathChest (Still Experimental)
- /dcgravelist [PlayerName]: lists all your GraveYard Signs and the time till witter
- /dcgraveport [Number] [PlayerName]: ports yourself to the GraveStone of Player with the given number
- /dcremove [WorldName] [PlayerName]: removes the DeathChest of 'Player' From 'World'
Config
Config help can be found under: Pages -> Config link
Permissions
Description for Permissions in Pages -> Permissions link ATTENTION! PERMISSIONS CHANGE WITH 1.04
Dependencies (Plugins)
Hard Dependencies:
- none
Soft Dependencies:
- one of the following PermissionPlugins: Vault, PermissionsEx, GroupManager, PermissionsBukkit
- WorldGuard: for Config-Option to check if player may place Chest on this position
- LWC : for Config-Options to check and set Player-Protection to Chests
- SecureChests : for alternate use instead of LWC
- Lockette: for alternate use instead of LWC
- BattleNight: for checking if player is in battle
Other
- If someone finds a Bug or requests a new Feature, just write it in the comments or create a ticket. I will then try to answer and fix / implement it if it seems usefull
Known Bugs
- none to know
Planed for next Version (1.14)
- Nothing new yet
- Bugfixes if found
when ever i try to make a death chest it says i don't have the permissions to make it and i am an op so I don't understand what to do.
@Primescore
This is a cool Idea. I have got very much to code at the moment. But I will get it on my todo list.
You should make a plugin where, When you die it will place sign where you died at. Then you can type /back or something and it will bring you to your gravesign. If you just break the sign then you get all of your items back!
@SamSeriously Yeah. It's already 45 min in approval.. I hate this slow system ^^
@Tobiyas
That would be wonderful and really help me out ;) Thx.
@SamSeriously I got the error... But I actually have NO idea why... If I compile it with the Bukkit 1.2.5 api, It wont work on 1.1.4... (which wasn before...) The functions that I use are the same in 1.1.4 as in 1.2.5... well.. Whatever. I will upload a version for Tekkit users.
I'm trying to get this to work with Tekkit 2.1.1. I can get the plugin active, but get an error on death.
http://pastebin.com/abX7Nykg
Am I doing anything wrong, or am I forgetting something? PermissionsEx is active and appropriate permissions have been given.
can you make it work with economy. make a cest will cost 100dollars and every time u die 10 dollars it will be great good plugin how i make a chest?
@WoodenAxeServer Thanks for the notice. I'll take a look into it :) Okay. Confirmed. I will get right to fixing it. (will be fixed in 1.03. Waiting for approval) The Spawnchest will now search the first free position in 3x3x3 from the player.
@WoodenAxeServer armour should be transferred, if the config option is set (which is by default)
also, armor should be included.
If you die on a bed, half-block, step, etc... anything that isn't a full block. Then it will replace the item. Maybe check for collisions before dropping the chest? only place it in air, otherwise just drop the items?
@Roadkill909
It has the default priority, so: EventPriority.NORMAL
Technical question. What did you set your PlayerDeathEvent handlers priority to?
Great work, does the job!
@SunshineTheBlond
Well this is not so easy to explain. First of all you need a Permissions-system. Usually with this system there will be a wiki or at least an how to. If you installed one, and shot yourself in the head, because configuration of any is quite irritating and frustrating, you will see that it is obvious how to add permission nodes.
I'm rather new to this site, so I apologize if what I'm asking was obvious.
How do I give permission to a player on my server to create a deathchest?
@eddoras
It should be compatible for all versions between 1.1 R4 and 1.2.4 R1, I will only personaly test it for these two Versions.
THIS PLUGIN WILL WORK ON 1.1.R4 And 1.2.4!!!
Omg please dont do this , please add options for 1.2.3 bukkit , i cant up to 1.2.4 i have 30-40 plugins about please make random - max.transfer options for available 1.2.3 R0.2 :'(
@eddoras
I see what you mean. I'm on it. I'll adjust it for different packages, too.
@Tobiyas
Yes i have vip's on my server and i dont want make vip's overpowered with this plugin , if i set max transfer no = 1 and random = true , (when u add these options) vip's can save one random item and members still kill vip's for gain item.