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.
To anyone who got NullPointerExceptions with v1.85:
@vein_mx No. I need exact logs (with detailed logging-level in the config) and a list of other plugins, otherwise I can't do anything. Please post in the forums.
@Phicksur First of all: thank you for the kind words :). However, "stops working" is nothing I can work with. Are there errors? How do they look like? What exactly happens and does not happen when someone dies? Console logs? ... But v1.86 might have fixed it anyways, please try.
@wb0ss2010 Must be another plugin that started doing the same to players, so it happens twice. We've had probems because Essentials started giving back exp automatically upon respawn, maybe something does that for items not as well?
@alma359 Check in-game with "
/death cause <cause-name>
" whether the option has actually been applied. Make sure you saved the file and reloaded (/reload
or/death reload
) after making your changes.@cika666xxx Setting that option to false makes everything use the OP system and ignore permission nodes. You need to set it to true, and make sure you don't have deathcontrol.free when being OP. Please look at the Permissions page!
great plugin, but the cost doesnt work for me (op). if i deop me it works fine with bukkit-permissions false. i am using permissionsex as permission plugin and have set the use permission to the user group
when i set the keep-experience to false, after relog the experience is there again.. please fix it!
why is it in 1.3.1 giving players back double the items?
@vein_mx
In my experience vein, no I do not believe so. What other plugins are you using?
@Phicksur
That sounds like a java/minecraft/server problem. Whenever a server has been running for long periods of time, java memory leaks are more likely, if not bound, to happen. I would just write a script that restarts the server whenever you stop it.
Hello.
I would like to state, for the record, that I appreciate your plugin.
I am running an adventure-mode server. Given that players are likely to die, a lot, and be far away from where they die when they do so, I needed a reliable and controllable way to let them keep their inventory and your plugin has fit the bill nicely.
I have, however, run into an odd problem. When the server has been up for a long time, sometimes your plugin stops working and people start losing inventories on death. Restarting the server regularly fixes it, but that's a bit of a problem.
Whenever players log out, DeathControl will send a message into the console 10-30 seconds later saying that they died from the cause VOID. Is this normal behavior?
@Bone008
I suspected the error could be related to Minecraft 1.3.1 or CraftBukkit. I haven't seen it since I updated to 1.3.2, but I'll see in a day or two.
@Bone008
Thank you Bone008 ..! Stupid mistake -.-
@OriginalMadman
That' pretty severe, I forgot a null-check on the kept items. Will be fixed in the next update. Thanks for the report, didn't notice that!
@MathiasVerden
Weird, I've no idea how that could be. I'm not at all doing anything affecting the player's position (teleporting, trying to shove them around). Are you sure it's caused by this plugin? Any noticable regiularity that I could reproduce?
When exactly does it say "Time is up"? At some point after you died? Randomly out of nowhere?
@JonasBauer
Your death causes need to be located under the section "DeathCauses:". Yours are directly in the config right now and thus won't be recognized. Here is a fixed version: http://pastebin.com/qbr7FS4c
Hey,
tried to configure, but server always says "loaded 0 valid death causes".. Could someone look for my mistake?
Config.yml
Thanks in advance :)
Edit: I've seen the "moved to quickly" line in server log, too
My server seems to give a "moved too quickly" error sometimes, and while I'm in Creative, DeathControl says "Time is up. Your items.." Hugh problem?
Hi, love the plugin. But getting this on shutdown now (and possibly some other inconsistencies says my players):
@Bone008
Hey my pleasure Bone, it's the least I can do lol. *Looks for a donate button* Awesome! Thank you for 1.85, and for such a quick reply!
I noticed you made it to where white/black listed items are dropped normally again. Any way you could make it configurable in the next update? Like drop-list-items: false (or something) makes them vanish?
Thanks again Bone, you rock man =D
@clamytoe @nurwin22
I appreciate hearing that :)
show-messages
has been added in v1.85. The file apparently still hasn't been approved, here is a direct link to it: Click me!Oh, and by the way, I'm only one guy ;) But thanks a lot for your awesome feedback!
@Bone008 Death Control! Such an amazing plugin! Thank you for everything yall have done! Oh BTW, show-messages: false is not working in the config... Just thought I'd stop by and let you guys know. Thank you again for such a vital and professional plugin!
This is awesome,
My users have been getting killed by the many bugs in the new release, now they can keep their stuff when they glitch out into the void!
Thanks.
@Bone008
Just tested v1.81. Works fine now.
Thank you for this great plugin and for the fast update. Keep on going!
Note: The issue below with too much experience was caused by Essentials. I added a fix for it in v1.81, which has been released just now.
Thanks for reporting and figuring out the cause (@SebNox)!
@Recolance I'm glad you like it :)
Seriously, hearing that people like it really motivates me to keep up the development of the plugin.
@ThatGuy2727
I would consider that when I plan to take the plugin to the next level and add more features that go beyond "preserving inventory loss on certain deaths".
However, because of some routines in the code and the general config structure, this would require a pretty time-consuming rewrite of parts of the plugin. With bukkit planning to be replaced by the Minecraft API, I am planning to wait with that until I'll have to rewrite it anyway (Bukkit plugins won't be compatible "out of the box" with the new API).
That would be the perfect opportunity to introduce a new structure and start adding new features.
That's also a reason why I slowly stopped adding features that make configuration more complex - they will come with the rewrite after a foundation for them has been set.
@Dell341 Probably the same answer as above. Instead of directly hooking into WorldGuard, I would like to enhance the possibilities with permission nodes to control what the plugin does.
I don't know if WorldGuard supports setting permission nodes while being in a region, but it would be like "
the player gets deathcontrol.use.something while in the region, thus the plugin will handle the death, but not otherwise
".@Brock_Blocking I replied in the forum.