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.
@joca0x90
It's included in v1.9, which was approved just a moment ago :) I hope you enjoy! Let me know if you discover any issues, there might be some more advanced functionality of MobArena that I didn't consider.
@Bone008
Hi Bone008... I'm still waiting for the MobArena hook, When do you think it will be ready?
Thanks for such a great work :)
@4lfalfa I know, thanks. There is no persistence for stored items, so they are automatically dropped when the plugin disables. I might add persistence at some point, but right now it's intended.
@Siphonex Sounds amazing for the new system, I already took that into consideration when planning it out. I really hope I can make "DeathControl v2" a thing very soon, but I can't promise anything ;)
@LordEcchi Set timeout-on-quit to
-1
, that will disable the timer. Note that they will still drop when you reload/stop the server (see above).@fyrus12345 Use a whitelist and create a List that only contains armor. Thus, only armor will be kept and the rest will drop.
How can you make it so that only the inventory is dropped, not the armour.
I'd like to make it possible to hold the items of a dead player who's offline indefinitely. Can that be done?
Would worldguard integration be possible? I'd like to have this enabled only for a certain region, that would be amazing :)
restarting the server while a player is dead (starring on the red death screen) causes that player to drop his items and exp vanilla style even if the death cause was supposed to safe the items/exp
not sure if its caused by other plugins on my server though
@joca0x90
I've heard that a couple of times now, so I finally decided to look more closely at it. There actually seems to be a possibility of generating items when the player dies in a MobArena arena.
I've hooked their API, it will be fixed in the next update (even though I'd really prefer a more generalized solution, but a shared solution like Vault for inventory states does not exist ...).
To everyone: Please suggest more plugins that cause the player to have a separate inventory and thus conflict with DeathControl. I will try to add fixes for as many plugins as possible!
@MountaindewM
There are probably plugins out there that have "reward a player kill with money" as a dedicated feature, maybe you can combine them?
Anyhow, your idea would be possible with the completely overhauled config system that I finally started working on. Yay for flexibility! Probably gonna still take a while though ...
@zempire2010mjk
Unfortunately, right now there are only the child causes that are listed in the documentation, sorry. But the new system will (hopefully) make adding that a breeze ;)
@4lfalfa
Yes, that is possibly since the latest version of the plugin! Please check out the Configuration / messages.yml page on how to do that!
can you disable the messages to the player somehow?
i want to keep the chat clean
Are the only child classes those actually in the messages.yml or are we suppose to be able to do something like MOB|ZOMBIE to have more custom messages?
Seems that doing so just sends an invalid death type on reload.
[LOW] add a "pay-to" option that allows you to reward the attacker of a PVP kill
I SO want this added. You think it would be hard to add since I have Jail Server that we have guards who have "special" items that are enchanted and they can infinitely retrieve these items but they cannot be picked up except by guards. So we want a way to reward people for killing them. This would be a neat way to reward the prisoners and reward the guards at the same time.
I might get this and another plugin if possible and get it to work but definately bookmarking this one in hopes that you add this feature in.
Hi,
We got a player in our server that is able to take items out of mobarena. It seems that the problem is with deathcontrol. ¿It is possible?
Thanks!
@LordEcchi
You can use your permissions plugin to remove the "
deathcontrol.use
" permission from these players, that's what those nodes are made for :)Would you consider having a command that could toggle the effect on/off for individual players? I use this on my server, but a few of my players insist that losing stuff on death is half the fun.
@MadToastyBro
Yeah, could be part of the new overhauled system, which I didn't have the motivation for for a very long time, sadly.
@WizardCM
Might be easily implementable with the current system, I'll take a look, but can't promise when I'll get around to releasing the update.
@fungreenfox
1. You can change that timer with the "timeout-on-quit" option. Details at the Configuration page. 2. If you mean the message that is sent to the dying player, you can change the texts for the various causes at the bottom of messages.yml at the block "
cause-reasons
".Those values will replace the "
%cause-reason%
" wildcard. Details at the messages.yml page.Thanks for all the feedback, and sorry for not releasing bew features as frequently as I would want to!
I like this plugin, used for a year now. But, i have a few suggestions: 1. When player do something stupid and dies same time, griefprevention will prevent the user loggin in for the next 2 minutes. Means lost items, since DC holds items for 30 secs. only. Expanded option for this in the DC config will be cool.
2. when translating the language messages in messages.yml, it still speaks in english while saying "user died in lava" etc. Please move those translations into messages.yml too.
I love this plugin, it helps on my Survival and SkyBlock worlds, in case people suffocate or die in the void, as usually they can be caused by glitches.
I am also interested in the "keep hunger" idea for this plugin, as it'd give a reason for players NOT to kill themselves by dying in the void in SkyBlock.
How about you keep items when a player in a certain group kills you? Like, if someone in the group "Red" kills someone in the group "Red" , they keep their items.
@fede1608
See your forums post, sorry for the late reply.
@Rahmat_Burhanudin
The "
show-messages
" was removed in v1.87, because it was replaced by the more flexiblemessage.yml
. To disable message sending, simply set all messages to''
(two apostrophes to indicate an empty string).@dfdgsdfg
I'll see what I can do. I don't like hooking specific plugins, but it looks like I have to, since there is no general "inventory state" abstract wrapper that I know of.
config show-messages: is not work? and can i set time-on-quit to never expire?