DeathControl
Overview
This plugin is a powerful tool to control what happens when players die. Its primary feature is to allow players to keep their inventory, but by now it offers plenty of more possibilities about what to do. You can set conditions that have to be met and actions that will be executed.
Flexibility is one of the main objectives of the plugin. Whether you want a simple way to keep inventories, you want enchanted pickaxes named "Pink Elephant" to be destroyed upon death or you just want to change PVP deaths - this plugin makes it all possible.
Main Features
- provides a powerful way to set up handlings for player deaths
- create different behaviors depending on how and where the player died
- able to save a player's inventory, experience and/or food level upon death
- destroy or damage items upon death
- allows item filters to affect only certain items
- economy support: charge them money for it!
- waiting for the player to perform a command can give them the choice of what to do
- disconnecting players are treated with a timeout
- supports every major economy-plugin through Vault or Register
- uses regular permissions system or the OP system
- flexible messaging system that allows localization and customization
- hooks into the API of MobArena and BattleArena to fix deaths in an arena
Donate
If you want to support the development of the plugin, feel free to drop a donation! It really helps to keep this plugin alive. Thank you :)
Pages
- Configuration
- Commands
- Permissions
- Changelog
- FAQ (Frequently Asked Questions)
- Source code
Setup
- If you want to use economy plugins, you need to have Register or Vault installed as a plugin.
Just download the jar from the linked page and put it in yourplugins/
folder, if you haven't yet. - Drop the plugin's jar in the
plugins/
-directory of your server (just like every plugin, eh?). - Start/Reload the server once to generate the configuration files at
plugins/DeathControl/
. - Read the instructions on the Configuration page for config information!
- Make your adjustments to
config.yml
andlists.txt
as you wish - Reload the config files either through reloading the server or, easier, with the command "
/death reload
" - Enjoy the plugin!
Dependencies
The plugin is functional without any other plugins.
To be able to use the "charge" action (and thus make players pay money), you need one of those plugin libraries so this plugin can make use of your installed economy plugin:
One of them needs to be installed as a plugin on your server.
Reporting an issue
If you think you found an error with the plugin:
- Read the FAQ. It might be a common incompatibility.
- Go to the Issues forum and check if the issue was already posted/answered by another user.
- If not, create a new topic in that same forum and describe your issue precisely. Always post your craftbukkit version, plugin version and if relevant your config file(s).
Please do not report issues in the comments! Only use the forums!
To-Do
This section is now represented by the Tickets tab.
@Bone008
for me, everything functions correctly except for players dropping on occasion. As I believe I've said earlier. Two things would be great, permission node to never drop under any circumstances, and a flatfile or mysql / sql lite support for temp storing items for players who lose connection at the time.
Running 1.4.5 works just fine.
@everyone
Dudes, you have to tell me what it is that is not working! I've briefly tested the plugin with 1.4.2/1.4.5 and didn't notice any immediate breakages.
"does not work" is not an error description!
The least thing that you have to do (assuming you have no big ass errors spamming your console that you could give me):
logging-level
todetailed
How am I supposed to help you when I don't know anything about your problem?
And please use the forum!
No errors, it loads well, but it does not work in 1.4.2 or 1.4.5 servers, i've tried many times, in 1.3.2 works perfect.
Are you planning on updating this to 1.4.2 / 1.4.4?
Sometimes it fails to work. Seen patterns with mobdisguise usage and /heal usage
@Mayhem777
No error message?
Broken on 1.4.2 :(
http://dev.bukkit.org/server-mods/deathcontrol/forum/issues/44962-dropping-saved-items-in-30-second/
Your plugins are amazing. This is the exact plugin I needed for my server. I'm going to add your route plugin as well, so thanks!
@Bone008
Thank you so much :D! I tried asking the developer of DeathTpPlus, but he has some stuff going on irl, so he said he was unable to do it. :( But thanks for doing this for me :) It will help out a Tonnnnn :D
I love the plugin, and have been using it for a while now.. But currently am finding myself very limited on who can have access to what death control.
An example of what I mean. Lets say I want all my users to get their inveontory back automatically on things like VOID, and PLAYER deaths at no cost to the user. Then have a command and cost on normal deaths like MOB, CACTUS, etc etc. But here is the tricky part. At the same time as the command and cost on MOB, and CACTUS there could one for the same deaths but only offered to a specific permission group.
E.G
That way different player groups could have different options on death. I think that would make this plugin 1000 times better than it already is. Keep up the good work.
@xclucky
DeathTpPlus' death listener uses a lower priority than mine. That means that the death is passed to it at first, and then to DeathControl. At that time, the drops have already been cleared, so I can't handle them.
The solution here would be to put my listener before the one of DeathTpPlus. However, the correct way is sometimes also the other way round (give another plugin precedence over this one).
For example, there used to be a problem with Essentials that would duplicate experience because it would handle the death as well. I fixed it by moving my listener past Essentials and reacting to its actions appropiately.
So there is not really one "correct" priority, it needs to be adjusted given certain conditions. I might need to create a config file so you can customize it (for "advanced users").
Given it's not too hard, it'll probably make it into the next update. Stay tuned!
I believe DeathTpPlus cancels this plugin out, when the player dies, the emeralds are not sent back to the inventory, however, they are in the deathchest. What I am attempting to do is make the players not lose any form of emeralds and have them sent straight back to their inventory, however, everything else goes into the deathchest provided by DeathTpPlus. I was wondering if you could hook into an API to do this. It is also very important that the emeralds aren't duplicated by the deathchest. I will be willing to test this if you decide to do it. This would be greatly appreciated. Thank you. Here is my configuration:
Config.yml
Lists.txt:
PS: DeathTpPlus handles teleporting back to death location for a configurable amount of money amont a lot of other things ;)
@xclucky That's not how lists are supposed to be used. In config.yml, you only put in names of lists that you declare in lists.txt, not the item types themselves. Please look at the Lists page, which explains list usage.
I do not know if this is a bug on your part or my part, but I am getting this error:
Config:
@Bone008
Ah. I wish I could, but unfortunately I'm not the owner of our server, and he's keeping it up to date for all our players! If I were capable of setting up and running any kind of server, I would love to help, but I can't I'm afraid :/
But regardless, thanks very much and keep up the great work!
@MartyMikfly Thanks, I'll see what I can do. I really want to stop working in this messy environment and move to something cleaner.
@DayneOram Yes, definately. Keeping it up to date is still the topmost priority. If you want to help with the process, you can grab an early 1.4 build of craftbukkit and see if the plugin causes any issues. Most of it should in theory be upwards-compatible, tracking down what exactly broke is always the most challenging part.
Hi there!
This plugin sounds absolutely perfect, and our server would be very interested in using it. Especially due to being able to choose what is restored, and what death causes the restoration.
Will you be updating this plugin to 1.4.2? I very much hope so!
Thanks! Dayne
This looks great, and I would loved to have it on my server - but we utilize enchanted gear, so I'll be waiting for that feature to be included (hopefully someday) before using this.
Keep up the great work!
Ok if i can find the exact event that causes this error i'll tll you :)