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.ymlandlists.txtas 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.

-
View User Profile
-
Send Message
Posted Dec 23, 2012@forresthopkinsa
The latest version v1.87 is already compatible, the ones before that aren't. Use the latest version.
-
View User Profile
-
Send Message
Posted Dec 23, 2012@krisdestruction
yeah this is throwing out errors on server startup(1.4.6) pls update
-
View User Profile
-
Send Message
Posted Dec 22, 2012@Plumeex
Looks pretty neat, thanks for sharing! The unfortunate mistake I did in the default file (CONTACT instead of the correct CACTUS) that was mentioned in comment #212 is in there as well, though.
@krisdestruction
I briefly looked at the introduced changes, and I couldn't find anything that would break it.
The plugin should be mostly forward compatible now, only when there are changes in how players can die some changes could be needed.
-
View User Profile
-
Send Message
Posted Dec 22, 2012Anyone check this for 1.4.6?
-
View User Profile
-
Send Message
Posted Dec 22, 2012@Luxius96
This is multiworld compatible... Check the config.
-
View User Profile
-
Send Message
Posted Dec 21, 2012Please can you add the support for multiworld? i want in my 5 world custom options >_> and i can't
-
View User Profile
-
Send Message
Posted Dec 20, 2012You can download it Link Removed: http://www.mediafire.com/?k7ffi2pb9k2saxp (or you can copy/paste with the pastebin).
EDIT : corrected a spelling mistake.
-
View User Profile
-
Send Message
Posted Dec 13, 2012@DerDarcion Oh come on, I did that mistake again :( . Thanks for letting me know, I apparently missed that one. Also throws an ugly error when not set, looks like I need to get out another update.
Let me see if I can squeeze in some other changes.
-
View User Profile
-
Send Message
Posted Dec 13, 2012small issue on messages.yml
cause-reasons: CONTACT: you died of a cactus
but contact is not an valid deathcause, it is CACTUS.
-
View User Profile
-
Send Message
Posted Dec 10, 2012@diannetea
Read my comment only 3 comments below yours.
-
View User Profile
-
Send Message
Posted Dec 10, 20122012-12-10 11:07:18 [SEVERE] Error occurred while enabling DeathControl v1.86 (Is it up to date?)
java.lang.NoClassDefFoundError net/minecraft/server/World
at bone008.bukkit.deathcontrol.config.DeathConfiguration$RawOptions.<init>(DeathConfiguration.java:212)
at bone008.bukkit.deathcontrol.config.DeathConfiguration.load(DeathConfiguration.java:120)
at bone008.bukkit.deathcontrol.config.DeathConfiguration.<init>(DeathConfiguration.java:64)
at bone008.bukkit.deathcontrol.DeathControl.loadConfig(DeathControl.java:116)
at bone008.bukkit.deathcontrol.DeathControl.onEnable(DeathControl.java:73)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.v1_4_5.CraftServer.loadPlugin(CraftServer.java:304)
at org.bukkit.craftbukkit.v1_4_5.CraftServer.enablePlugins(CraftServer.java:286)
at net.minecraft.server.v1_4_5.MinecraftServer.j(MinecraftServer.java:324)
at net.minecraft.server.v1_4_5.MinecraftServer.e(MinecraftServer.java:303)
at net.minecraft.server.v1_4_5.MinecraftServer.a(MinecraftServer.java:262)
at net.minecraft.server.v1_4_5.DedicatedServer.init(DedicatedServer.java:147)
at net.minecraft.server.v1_4_5.MinecraftServer.run(MinecraftServer.java:402)
at net.minecraft.server.v1_4_5.ThreadServerApplication.run(SourceFile:856)
Caused by: java.lang.ClassNotFoundException net.minecraft.server.World
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:34)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 16 more
-
View User Profile
-
Send Message
Posted Dec 9, 2012@Sweetbarrow Yes, but that's been a while. And that beta build doesn't include the breaking change yet, it's only in there since development build #2512. Or were you referring to something else?
-
View User Profile
-
Send Message
Posted Dec 9, 2012@Bone008 By the way, 1.4.5-R0.2 beta has released.
-
View User Profile
-
Send Message
Posted Dec 8, 2012@HammyHavoc
In one of the latest development builds, they did a pretty fundamental change which basically breaks all plugins that directly accessed CraftBukkit classes (and will continue breaking them every minor Minecraft update). It's pretty unfortunate ... (for the developers, I'm talking about this commit)
Please use older builds until a beta or recommended build is out with the changes. If I change it now, the plugin will be broken on the older versions.
-
View User Profile
-
Send Message
Posted Dec 8, 2012It seems that this doesn't work on 1.4.5 with CB #2518, it complains on server start and asks if the plugin is up to date.
-
View User Profile
-
Send Message
Posted Dec 2, 2012Please, add EXPLOTION|TNT to death causes, I have mobArena and it is a way to dup items.
You can add too if you want, MobArena ByPass and All type of PVP/PVM Arenas :)
-
View User Profile
-
Send Message
Posted Dec 1, 2012it seems that this plug in works 80 percent of the time, in pvp sometimes the items still all drop even though i have it configured not to
-
View User Profile
-
Send Message
Posted Nov 24, 2012I can a create a region with no lose inventory? if yes how i can? please help :(
-
View User Profile
-
Send Message
Posted Nov 24, 2012@CVRipley
I think you are looking for a solution at the wrong place! The notification "Not in a valid world!" indicates that the player died in a world that is not in your
limited-worldslist.Looking at your multi-world configuration (so helpful that you posted it!),
limited-worldscontains the world "badlands". That means that the plugin only works on players dying in the world called badlands. Maybe the option name is ambiguous and you thought it meant the opposite?Playing with permission nodes, you probably gave everyone the deathcontrol.nolimits permission, which makes the plugin ignore the
limited-worldsoption (see the Permissions page).Anyway, I'm pretty sure that limiting functionality to the "badlands" world is not what you wanted. Hope that fixes your issue!
-
View User Profile
-
Send Message
Posted Nov 24, 2012Ever since i started using this plugin ive had issues with permissions.
Ive always bypassed the problems by changing the plugin.yml in the jar.
My fix nolonger works.
Right now death control does not offer items to players that died.
Only offers items back if player is OP
Permissions is to give deathcontrol.use
use-bukkit-permissions: true
logging-level: detailed
show-messages: true
multi-world:
allow-cross-world: true
limited-worlds:
- badlands
DeathCauses:
VOID, PLAYER, LIGHTNING, UNKNOWN:
keep-inventory: true
keep-experience: true
FALL, CACTUS, SUICIDE, STARVATION, DROWNING, LAVA, FIRE, FIRE|tick, EXPLOSION, MOB, SUFFOCATION:
keep-inventory: true
keep-experience: true
method: command
cost: 10%
timeout: 60
timeout-on-quit: 60
Using PEX on a 1.4.5 r.02 server
Log file
14:53:27 [INFO] Sugam[/blablablablabla:51825] logged in with entity id 4611 at ([world] 82.80824871958964, 76.0, 196.28509157180795)
14:53:46 [INFO] Sugam issued server command: /i meat
14:53:53 [INFO] Sugam issued server command: /kill
14:53:53 [INFO] [DeathControl] Sugam died (cause: SUICIDE); Not in a valid world!
I tried to add the permission to the world itself
>pex group explorer add deathcontrol.use world
15:14:55 [INFO] Permission "deathcontrol.use" added to Explorer !
>pex reload
15:14:58 [INFO] Permissions reloaded
Same result "Not in a valid world!"
Ive tried to modify plugin.yml and if i try to force it on by default everyone gets to use it except OP but it completely reverses the logic and enables for everyone EXCEPT op.
BEFORE 1.4 it always gave op free death back and even setting a negitive permission to -deathcontrol.free did not correct it but modifying plugin.yml did
ive then tried to use the OP system by setting use-bukkit-permissions to false and it still does not work.
I give up playing with it could you please please help.