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.
New issue! Very critical.
1) Player has ability to restore 100% inventory in all ocasions.
2) Player dies in any way (fire for exaple)
3) Server restarts this moment (when players didn't clicked ruserect yet)
4) All inventory drops to the ground
Please fix this.
If a player has a full inventory and is wearing armor, I don't think it is handling that correctly. I get back all my inventory, but the armor isn't anywhere to be found?
Plugin works outstandingly. One issue. People still lose items when killed by potions.
is there a way to have items deleted from existence on death? I can't seem to find one in the config list. if there is not one could one be added? would be very much apreciated
Help? Surely there's some way to tell a custom mob apart from other mobs?
@Bone008
The death cause says it's just "MOB" but don't want to set the config to just "MOB" since then it would work on all mobs not just wolves. :S
Is there a way to add a small feature to this? I'm looking to make it to where if a player has say 1-100 gold then a cost would be say 8 gold but if they have 101-500 then the cost is maybe 25? Sort of like paying taxes... the more money you make/have the more taxes you have to pay out. Tax brackets basically...
@Adkit Set "logging-level" to detailed in the config and look at the console when someone is killed by one of those wolves. It should then print out the death cause it recognized, even when no handling was configured.
@RevoMods Which potions exactly? Did you configure the MAGIC cause correctly?
Little issue here.
Users killed by certain splash potions do not keep items on death.
I'm using MyWolves and for some reason the wolves killing people don't count as "MOB|wolf" in the config. Do you have any idea what other config setting a MyWolf could have?
@jitasi
The "
/death back
" command isn't affected by permission nodes. That's because it doesn't do anything when no items are saved (via thecommand
-method). The permission node that restricts usage to the plugin is checked when the player dies, so people without it will never reach a point where there are saved items. You should be fine.@RevoMods I wanted to increase flexibility on that forever. I just didn't get around to it so far, sorry.
@Toast4breakfast What exactly should that "support" look like?
@OriginalMadman Seems reasonable and also doesn't sound too hard to implement. I will take a look at this.
@KittyHopHop
Those harming potions actually have a death cause called
MAGIC
. I apparently forgot to list in the Configuration page and never noticed it :/ Adding it right now (There is one called POISON as well that isn't listed)Tip when a death isn't handled as expected: Set
logging-level
todetailed
in the config. Then, whenever someone dies, all sorts of information will be displayed in the console about the death - including the death cause that was determined for that death (even when it isn't configured).@drdeft
1) is answered above. The "
/kill
"-command triggers the SUICIDE death cause, at least the vanilla one. If a plugin of yours overrides the command and doesn't properly set a damage cause for the command, I can't do anything.2) Sorry, I don't understand that sentence. Please open a thread in the forum with detailed explanation and your lists.txt and config.yml.
@DannySwish
1. Yes, I will take care of that eventually. Note that no items should be lost, though. Any overflow that doesn't fit into the player's current inventory is dropped at his feet so he can pick it up (when he has space for it again).
2. Sounds like a lag issue, probably also caused by the plugin providing the /heal-command. If a check would make sure that the player wasn't dead before setting the health, that issue could be prevented. Other than that, live backups of inventories looks like a new plugin idea, so I'd recommend posting it in the requests forum on bukkit.
Doesnt work with splash potion. I loose all my items if I die by a splash potion. :(
373:16396 - Splash Potion of Harming
373:16460 - Splash Potion of Harming (reverted)
373:16428 - Splash Potion of Harming II
Awesome plugin, been using it for quite a while. An option I'm missing though is setting a minimum cost on the percentage. Some players are bound to keep cash low to utilize this. I would like to keep percentage, but let the minimum cost be 200 or whatever. Thanks!
Please add support for the plugin "Heroes"! If you could do that i would love you and make babies with you, and it would definetly be best plugin for what it does.
Is it possible to have permissions for each type of death? I want it so regular users do not lose items from PVP.
Thanks!
Hey, I am using group manager as my permissions, however when i add the permission to a group and they type the command, it says
"You Don't Have Any Items to Get Back!"
I cannot figure this out, I gave my group "ELITE" the permissions
deathcontrol.use
deathcontrol.info
And even though I only gave it to them, all the other groups can see it when they type </death back> aswell
PLEASE HELP!!!!
This plugin is perfect EXCEPT for a couple of things...
1. Your armor is not placed back onto your body, and can lead to overflow and loss of items. 2. About three times I have used /heal JUST as I "died" and would click respawn to find that I don't respawn, I'm just standing where I was and everything in my inventory is gone. This is terribly frustrating and the mods on the server where this happened will not/cannot return my items to me. I'm pissed! I had some rare enchantments that vanished into thin air. This has happened multiple times with me and other members on this server. If you could somehow allow it to create a live-updating backup of what the person had just before they died and were able to restore it in the event that they vanish like this, that'd be great... I understand time isn't on your side and you really don't want to add new features but this would make your plugin better a hundred times over.
^^BUGs in 1.7 and 1.61:
1) POTION-SPLASH and Console KILL command death causes make VIPs (with 8% chanse of dropping items) drop all items.
2) Impossible to set Diamond sword undropable because all other things wil drop whatever with anti-drop permission.
@Colecf Actually a great idea, but as I wrote below, I am in no condition to add new features right now. Sorry.
@ryanwagner Actually, "overflowing" items are dropped at the player's feet when they get them back. They need to make space in their inventory so they can pick them up, but they should never be lost ;)
@Royalgamer06 The standard setting is that "all" items are kept. All you have to do is set
keep-inventory
to true (and optionally keep-experience, if you want that) in the config.Repeat that for all death causes (Configuration).