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.
Why 'deathcontrol.use' is only op? This version dosen't working on normal users without deathcontrol.use
http://dev.bukkit.org/bukkit-plugins/deathcontrol/pages/permissions/
does it work with 1.7.2?
my items stays and exp duplicated. and my money all gone (i test bal give 1000, charge set 100, but when die bal 0). is there any keep-money command?
meh, ill KIV this plugin because look powerful until have compatibility with Essentials.
Until then.
Any idea when you'll fix the "deathcontrol.free" permission?
@Killer2demon
WorldGuard support was already added in v2.0.0 :) Check out the "region" condition on the Configuration / Conditions page. If you add that condition to a handling, you can make it only count in that region.
@H8llfire Mmh, make sure you look at the durability numbers and see if that's really the case. I tested this thoroughly, it should work the way I described it.
@Bone008
Future possibility to add worldguard compatibility? I'd like to have this active only for specific regions.
@Bone008
Really? When I tested it, it damaged from the total amount o.O
Odd
@diannetea
Yes, that is intentional behavior. The number that is used for the percentage is the amount of uses left. Damaging an item by 30% means that it will have 70% of its uses left compared to its old amount of uses.
Basing it off of maximum percentage would make sense as well, but this is what I decided to go with.
Is damage-items supposed to go off of a percentage of the damage, because that's what is happening
I'm trying to think of how to word it. Instead of 2 deaths at 50% damage equaling 100% damage, it ends up being 75% damage because it's damaging off of the damage amount instead of the entire amount.
@H8llfire
@Al3XKOoL
Are you using essentials? You might have given the players the keep experience permission node.
Little issue on my side: When a player kills another player through a fire dot, he will lose his inventory. I added firetick now to let him keep his inventory, this will however also apply if he dies through the firetick when not set to fire from a player. Could you somehow fix this?
@diannetea
You can't have more than one cancel message right now - with multiple sections they override each other, unfortunately. Allowing that would have made everything even more complicated and confusing. The functionality itself is possible, though.
Put "
wait command
" first, then "required charge ...
" to make them pay after the command. The command will only fail if you provide a timeout.@Ackuraku
Yes, this is where the new system shines :)
What you are looking for is the "required" keyword and the "destroy-item" action. Your actions would look like this:
The idea is that the action chain will be cancelled when a required action fails (in this case when the player doesn't have 10 diamonds), thus not reaching the
keep-inventory
-action.@anime5167
Nice idea, haven't thought of that yet. I know how to do it, it's pretty simple. Added as a ticket.
@H8llfire
Glad I could help :D
Epic plugin!
Thanks alot man.
can you add auto respawn?
Would it be possible to have inventory kept on death only if you have say 10 diamonds, then consume those diamonds on death as a cost of keeping ur inventory?
Then people who don't have those required items would drop their inventory?
I'm trying to figure out the best way to charge a player AND make them use a command. Would it be better to use two sections or one because of the cancel messages? I'm sure I'll figure it out, but I thought I'd post in case someone has a solution readily available. :)
Sorry for my absence, I was away for a while and on top of that, BukkitDev for some reason stopped sending me subscription updates.
@SentinelCraft
Thank you. I replied to you on the forums.
@Thenciouse
Good point, I'll improve the "keepInventory" warning to respect ignored worlds.
@Tony556
It could be the same issue with Essentials' feature to keep experience on death as well. Are you using Essentials? Then make sure that is disabled. Otherwise, I at least need a config file as well ;)
All I know is that Deathcontrol make my xp go up by ALOT when I die. :/ Might have something to do with 1.6.2 beta
Okay I dont know what the problem is... but intermittently when I /death back I lose half my money. I can upload the part of the config that I think is causing it if thats helpful.
I think it might have something to do with
- keep-items 50%
Any help would be appreciated. Great plugin. One of the best =]