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
ya i keep getting this error when players die:
7:44:50 AM [SEVERE] Could not pass event PlayerDeathEvent to DeathChest org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341) 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.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:322) at net.minecraft.server.EntityPlayer.die(EntityPlayer.java:307) at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:663) at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:595) at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:349) at net.minecraft.server.EntityMonster.k(EntityMonster.java:80) at net.minecraft.server.EntityMonster.a(EntityMonster.java:86) at net.minecraft.server.EntityCreature.be(EntityCreature.java:56) at net.minecraft.server.EntityLiving.d(EntityLiving.java:1095) at net.minecraft.server.EntityMonster.d(EntityMonster.java:21) at net.minecraft.server.EntityZombie.d(EntityZombie.java:55) at net.minecraft.server.EntityLiving.h_(EntityLiving.java:447) at net.minecraft.server.EntityMonster.h_(EntityMonster.java:25) at net.minecraft.server.EntityPigZombie.h_(EntityPigZombie.java:35) at net.minecraft.server.World.entityJoinedWorld(World.java:1245) at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:511) at net.minecraft.server.World.playerJoinedWorld(World.java:1227) at net.minecraft.server.World.tickEntities(World.java:1125) at net.minecraft.server.WorldServer.tickEntities(WorldServer.java:428) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:564) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at net.minecraft.server.PlayerInventory.setItem(PlayerInventory.java:277) at org.bukkit.craftbukkit.inventory.CraftInventory.setItem(CraftInventory.java:76) at de.tobiyas.deathchest.listeners.Listener_Entity.onPlayerDeath(Listener_Entity.java:72) 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:339) and 25more
Hi there Tobiyas,
I've been using this plug in since 1.2.5 and Ive loved the changes youve done. However, I am experiencing the same problems as most are I cannot set the permissions so the "average joe" can use or setup their own deathchest. Each time they try it says they do not have permission. Seems like only OPs can (which was fine back then, not so much now that I play with a few friends).
Ive used the following Permission nodes:
Ive looked in the config.yml
I've re-rolled versions over and over trying to get any of the above permissions to work - sadly none of them have.
Any insight you could provide to any of us would be very helpful :3
Thank you for reading my long and boring post.
- Darenia
ahh wtf i put in verions 1.09 and it dupes all the stuff you have equipped
Does this plugin only work for OPs? Even with adding permissions no one can use it. Please help :)
plz tell me what i do wrong ... players still gets duplicated items when thay die .. no errors what so ever in the console .. Minecraft 1.3.1 R2
Got this error using 1.09 for java 7 and the latest dev build 2358
http://pastebin.com/Tp7qtMBx
When a user died by falling from too high. She lost several item that did not appear in the chest (it is configured to save everything) and she had a few items duplicated (a helm).
@Pendar2 Seems like you are actually right. I'll see what I can do.
May players says that the items DUPLICATE if you die by falling in to VOID !!
Is this a problem with DeathChest ?
@Tobiyas
Hey, i'm having this same problem, and I have both Vault and Groupmanager. How do I set them up to let non-ops use the plugin? Thanks for any help you can provide :)
I don't know if you are aware but there is an item dupe glitch. You fill up the stationary deathchest with unstackable items but leave the 2 bottom rows empty. Then fill up your inv with unstackable items and put the item you want to dupe on the hot bar. Next, you suicide and your inv gets saved in a regular and stationary chest. This is what was happening on my server.
I haven't seen any 1.3.1 errors yet, tested most of the chest related features.
Great Plugin, keep up the good work! I look forward to future updates :-)
@Tobiyas
Thanks a bunch, waiting for the 1.3.1 support ;)
looking forward to an update for 1.3 my players love this plugin :)
Thanks for the Tekkit version! Can you update it though? Thanks!
please update source code to 1.08
@GoldenWrapper Could you post the whole StackTrace? Just the exception doesn't really tell me, where there can be an error.
Caught this in my console: 06.07 20:15:56 [Server] SEVERE Could not pass event BlockBreakEvent to DeathChest 06.07 20:15:46 [Server] SEVERE Exception in thread "Thread-92" 06.07 20:15:01 [Server] SEVERE Exception in thread "Listen thread"
@hellspawned29 Yes one of the Following Permission Systems is required: Vault, PermissionsEx, GroupManager, PermissionsBukkit.
Otherwise only Ops can use it.
it only allows ops to make them is a permissions plugin required?
@dan2wik I'll take a look at the plugin API of Residents and see what I can do.