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.
Glad its not just me, was afraid it might be another plugin.
Thats really nice armor now stays in slot after death. This plugin is unbeatable.
@Brock_Blocking
Same Problem here. XP is increasing after death. The settings are:
Already reported the issue in the forum.
Thanks for your great work Bone008. Hope you will fix it ;)
on fall death xp is increasing drastically instead of staying the same. FALL: keep-inventory: true keep-experience: true
Could you add Worldguard support?; so if a user dies in a certain region they can none or all of their items back.
Would you consider adding spawn killing protection? Something like a configurable amount of time after death where a player can't kill or be killed?
Finally!!!! Thank you so much! Armor goes back in armor slot!!!!!!!!1 FFFFFYESS!!!! no more caking! im a little excited as a serve rowner orf over 150 players.... thanks god :D I <3 you and im a guys... kbye
The release v1.8 for 1.3.1 is out! Let me know if you still notice any issues.
I also implemented two things that had been requested for ages: ordering/positions/slots of items are restored again and the loss-percentage alogrithm has improved.
Thanks for the patience!
@VietNg @Recolance
I am working on it! It would really help if you could report WHAT exactly is broken, that way I don't have to search as much myself. What I already know is that the experience system changed and that experience given back at respawn is invisible to the player (unless they relog).
Is there anything else you've noticed? I am close to having fixed these two issues, but I am unsure whether there's anything else left.
Please 1.3.1 PLEASE! It bugs a lot and people complain ALOT. Please dear god. :D
Hi,
I'm a fan of your work on this plugin and I hope you will consider updating the plugin to 1.3.1 soon :) Thank you very much
@darth2499
or customize them. :)
And I know it's possible to prevent zero item return in certain worlds with the configuration limited-worlds. But can you make it possible so that in some worlds, ALL items are returned? No matter how the user dies.
Please make it so you can turn off the message!
Please look into the Deaths caused by heroes magic. I would do anything to have this work properly. I'm using your plugin on CrookedCraft.com where i'm making a Huge spout RPG. this plugin is the backbone since rare items should never drop
@Bone008
I haven't tried not configuring the cause haha. I just wanted standard minecraft behavior, as you mentioned, when players are killed by others players. It still works, just tells me that 100 is not a valid percentage =] And the second problem has been fixed.
@MineCraftMyph Custom messages have been planned for a very long time. I'm just not really adding new features at the moment, due to time and motiviation reasons.
@vein_mx First problem: Ummm, I probably understood you incorrectly, but "items drop on death" is standard minecraft behavior. This plugin changes that under certain circumstances. First telling it "I want to keep items" (
keep-inventory: true
) and then saying "100% of those kept items should be dropped anyway" (loss-percentage: 100
) is kind of pointless, so it doesn't allow 100% loss. If you want items to drop, can't you just NOT configure the cause? Or set keep-inventory to false?@Recolance This has been reported several times now, the answer stays the same: Items that don't fit in the inventory when given back drop at the player's feet (where they respawn with the automatic method).
I just tested that once again, it still works as intended for me. Please check your feet, if they are in fact not there, then that's actually a bug ;)
Since preserving item ordering has been requested so many times now, I might actually set priority to that and see if I can squeeze out some time to look into it.
Big issue. Players with a full inventory will lose armor, can you make it so armor spawns back into the armor slots please. It would make this plugin the absolute best!
Let's say for pvp, I want players' inventory to drop. So in my config, I have this: PLAYER: keep-inventory: true keep-experience: false loss-percentage: 100 Yet every time on load, it says that 100 is an invalid percentage? Things drop as expected, but the little error message is incorrect I believe.
Also recently, I have been dying but I have been receiving my inventory back immediately. It also lets me use /death back and /death drop, which leads to duped items. As an Admin, I do have all permissions, but I negated deathcontrol.free. This only started happening recently. I haven't noticed it before so it may or may not be something with version 1.71? Any idea as to why?
@Bone008
[HIGH SUGGESTION]
Adding Custom Messages with Color and Code support would be very helpful, a Donation Might have to be made.
%cause is what made the player die, example Falling, Creeper, Fire
%recovered is the Percentage of items you Recovered after Death, 100 29.42 52.6
%lost is the Percentage of items you Lose at Death, Nothing, 70.58 47.4
Death: &4You've died from &2%cause &4and lost &6%lost &4percent of your items.
Cause
Creeper: A Mighty Creeper
Falling: Jumping To High
ON SCREEN MESSAGE:
You've died from A Mighty Creeper and lost 29.42 percent of your items.
Seems that when using heroes magic the player always drops all items. You could possible hook into the Heroes api for a quick fix
@Recolance Potions have the death cause MAGIC.
@vein_mx Items that don't fit in the inventory when given back drop at the player's feet. So the armor should drop where you respawn or issue the back-command. If it doesn't, make sure to reconnect, there might be some client-side invisibility glitch or something.
@drdeft That's intended. When the plugin disables (the server stops/reloads), all stored items are dropped at the death locations. Reason for this is that production servers usually don't reload all the time, and making the stored items persistent just for that is overkill. The timeframe where this happens is insanely small.
To everyone suggesting features: New stuff does need to wait for a while, sorry. My time is very limited and I have tons of other projects to work on.