DeathHappens
DeathHappens
This Plugin will store your inventory into a previous registered chest when you die. It'll also post a random, message to the server. This messages can be defined by yourself.
Important information on v1.1.9b and following
- Project requires your server running on Java7 since v1.1.9b
- make sure you use Java7 or else the plugin will not work
Features
- deathchests for item storing
- MySQL or SQLite as database
- XP restoring
- random deathmessage
- configurable ignorelist for worlds where items shouldn't be stored
- public chest can be added for players without registered chest. This chest will be emptied 2 minutes after death.
- Database cleanup command
Commands
- /dh addchest |registers a chest for you
- /dh removechest |removes your chest from database
- /dh setchest <playername> |registers a chest for playerxy
- /dh removechest <playername> |removes chest of playerxy
- /dh gochest |teleports you to your chest
- /dh gochest <playername> |teleports you to the chest of the given player
- /dh setpublic |registers the public chest
Public chest
A public chest will be used for every player without a registered chest. It's usefull if your newbies get a starterkit and you don't want them to loose it. For example you can place it near the spawn so it could be emtied fast. But be carefull in the public chest goes all items from all players who have no registered chest. Also this chest can be reached by the tp command if you write /dh gochest public. But if the player isn't fast enough his items will be autodeleted two minutes after his/her death.
Permissions
- dh.use |allows to set/remove a chest for own usage
- dh.tp |gives access to the gochest command
- dh.tpother |gives access to the gochest of other player command
- dh.public |gives access to the setpublic command
- dh.admin |allows you to set/remove chests for other players
Change notes
- v1.2
- fixed SQLite isuue
- fixed xp issue
- added metrics
- v1.1.9b (beta for 1.4.5)
- added new mobs
- better help function
- changed configfile to config.yml (should change automatically if any problems accure create a new one)
- rewrote a lot of my code Now REQUIRES Java7
known errors in v1.1.9b:
- SQLite feature is not working properly sometimes(working on this issue)
- found more? please tell me!
- v1.1
- added cleanup command for database
- fixed saying killed by "Ghost" when it was a slime or some other
- added possibility to use a public deathchest
- v1.02
- now saving xp instead of level
- added command to teleport to other players chest
- v1.01
- first release
Known Errors
- Exception when trying to add a single chest (to avoid use doublechests when registering)
- When someboddy types the add command anybody else gets an error post when left clicking
Planned features
- support of economy systems (let chest setting cost something or each death)
- Add possibility to show used item in pvp actions
- Is anything missing? let me know
It does not work for me. All is fine, untill I try to set a chest. I left click till the cows come home on chests, but it does not set. When I do anything else after typing the command, it says ERROR "you must left klick a chest!" Also, the XP saving isn't working.
Thanks for this great plugin. I've found a few bugs with it:
Please note that no matter which CraftBukkit version I'm using I still get the error.
Suggestions:
CraftBukkit 1.5.2 Beta DeathHappens 1.2
@Errored
this is because of the colors used for the deathmessages
When someone dies the death messages are great but they can be a bit unreable at times:
§7Silly §fcrypton134§7, keeping §fSpider§7 as a pet is always a bad idea.
That's what pops in the console and in the console log. Although it does show it correctly in-game.
@Zilacon
I rewrote lot of code with the last update and with that I am using code only available in Java7 which means your server must run with Java7. From that error you get I would say that your server is running with Java6.
I get this error at startup:
I am running Spigot Build #285
@ursak I disable the register commands and only let my staff register a chest for them. I have put all player's registered chests at a certain location to force them to go there and pick it up. I have players pay the person setting up the chest a (500k) fee for getting a registered chest which eventually goes to server bank.
It's not an automated way of doing but it does work for us.
@ursak
You could do so by forbid the register commmand for users and their chests and set it manually
The other is do you sugest to make a possibility to set a price for registering a chest?
Oh, how I wish there was a choice to let admin control which chests are ok to register. Even more if admin could set a price on them.
I'd love to limit players to be forced to register/buy their chest on a set location and be forced to go there every time they want to recover their lost things.
This way everyone would visit the main city more often since they'd (on my server) be forced to go there to collect.
I guess I could make the commands to be usable only on specific regions with worldguard and make the regions buyable as a way to make it work "my way"? Hmmm...
Hi @all
I uploaded a beta version of my plugin with all my cleaned code and changes for 1.4.5 I hope it works for all of you but I would like to get feedback no matter if positive or negative or about bugs you found.
known issue:
I am aware about the problem that SQLite is currently not working properly and I am working on this.
So as soon as the bukkit team approves my file you can go on and test/use it
@BLiNdZoRZ
I'll have a look. or better I rewrote a lot of my code some time ago but got trouble with the SQLite function that's why I didn't updated it yet.
I hope I'll find some time to finish it and look why you get this.
Can you update this for 1.4.5? It's telling me "An internal error occurred while attempting to perform this command" every command I try to do.
Much better. :)
I'm using your plugin and it doesn't seem to restore XP. I tested it, then had another player test it. I set the chest for this member, he did /kill, opened the chest and XP wasn't restored.
Another bug, I use AdminCmd and by default I have all permissions which means when I die my inventory stays with me no matter what (a feature). Which of course cases a conflict with this plugin and I get this error:
http://pastebin.com/i4E2kJTG
It's not that bad of an error since I still keep my inventory even when I die but the error is a bit annoying. Also, even though I have this feature (part of AdminCmd) of keeping my inventory I don't want players to have such an easy time getting back their stuff, and that's where your plugin comes in. It's worked great so far except the XP thing.
@Errored
Thank you I hope it's a bit better now.
I just wanted to say that the description of this plugin is a little vague. One can guess it will be about death (based on plugin name) and chests (based on description), but not how they come together.