KeepItems
KeepItems
KeepItems
KeepItems allows players to keep their items and/or experience when they die, whilst allowing fine-grained control via the permissions system.
Quick links
Downloads
Source code
Please donate if you've found this plugin useful, to help support future development.
Bitcoin address: 16irtnP6a8fv14vdCoAqW5ug7TCUCR6gcg
Quick setup
If you simply want all players to always keep their items and experience when they die, add the following to the permissions.yml file in the root directory of your Bukkit server:
keep-everything:
description: Allow players to keep their armour, their experience and all of their items when they die.
default: true
children:
"keep-items.armor": true
"keep-items.level": true
"keep-items.progress": true
"keep-items.cause.*": true
"keep-items.entity.*": true
"keep-items.item.*": true
For more information, please refer to the documentation below. If you need any help configuring the plugin, feel free to drop me a comment.
Documentation
Frequently Asked Questions
I have all the correct permissions but when I die I still lose all of my items. Help!
Make sure you don't have any other plugins installed that might interfere with the death/respawn process.
How do I configure this plugin so that players can only keep their items in a single world?
Use a multiworld permissions plugin (e.g. PermissionsBukkit, bPermissions, GroupManager), and only grant the KeepItems permissions in one world.
-
View User Profile
-
Send Message
Posted Aug 13, 2012it has to be the best not including the lose your items if the server restarts or crashes so i think your ahead
-
View User Profile
-
Send Message
Posted Aug 8, 2012@codemanj94
That feature is implemented in version 1.0.rc2 (currently awaiting approval).
You can set it up so players only keep their items when they are killed by another player by taking away the keep-items.entity.* permission and adding the keep-items.entity.player permission. Thanks again for the suggestion.
@VladimirMarenus
You don't have to take away every damage cause, just take away the keep-items.cause.* permission. (For example, with PermissionsEx you would do this with the command /pex user <username> add -keep-items.cause.*)
-
View User Profile
-
Send Message
Posted Aug 6, 2012@codemanj94
That's not possible at the moment (bit of an oversight, I know). I'll add that to my to-do list. Thanks for the suggestion :D
-
View User Profile
-
Send Message
Posted Aug 6, 2012Are you able to set it so you only keep your items when killed by other players? I can't seem to get it to work with any of the damage causes.
-
View User Profile
-
Send Message
Posted Jul 30, 2012@fetusdip
"Basically it just does what you do in onRespawn but 1 tick after death instead and uses keepLevels() instead of giving the player the levels back."
That's an excellent idea, thanks for the suggestion.
"Also, why don't you use PlayerDeathEvent?"
Because I didn't know it existed. Thanks for telling me :D
-
View User Profile
-
Send Message
Posted Jul 30, 2012@robinjam
Basically it just does what you do in onRespawn but 1 tick after death instead and uses keepLevels() instead of giving the player the levels back. Also, why don't you use PlayerDeathEvent?
-
View User Profile
-
Send Message
Posted Jul 30, 2012@fetusdip
I wasn't planning to add persistence to this project given how much complexity that entails.
As for the code snippet - perhaps I'm just being thick but I'm not entirely sure what its purpose is. Feel free to submit a pull request and I'll take a look at it!
-
View User Profile
-
Send Message
Posted Jul 29, 2012@robinjam
You have no form of persistence, so if the server restarts before the player respawns the items are lost. This is very likely to occur for players who log out from the frustration of dying.
Edit: you might find this code useful: http://pastebin.com/iYUsBsij
-
View User Profile
-
Send Message
Posted Jul 27, 2012@robinjam
I would really. REALLY. Like it if you could default to false, please. Or put a config option in there. I want to give .cause.pvp to one group, and that's it. But because .cause.* is true by default, I now have to do negative permissions for every. other. cause.
.<
That said, thank you for this plugin. It seems to be, with the exception of what I just mentioned, the best of its kind. :) I hope it's 1.3 friendly!
EDIT- I meant to point this at robinjam, dunno why it won't fix. D:
-
View User Profile
-
Send Message
Posted Jul 19, 2012@gotgot1995
@Ta6akus3
I can't reproduce this issue. Are you sure they have the correct permissions? Did their items drop where they died or did they just disappear? Also, I don't mean to imply that the players on your server aren't trustworthy, but are you sure they're not lying to you to try and get you to give them free items (people have tried this on my server)?
-
View User Profile
-
Send Message
Posted Jun 23, 2012This plugin is awesome !
I still have some bugs and my players are sometimes complaining their inventory is empty after death.
Where does that bug come from ?
-
View User Profile
-
Send Message
Posted Jun 9, 2012Would not let drop only XP? Solved! is only allowed to put the right
-
View User Profile
-
Send Message
Posted Jun 9, 2012This depends on your permissions plugin, but most plugins have a negative permission thing.
For example, in GroupManager,
- (permission) gives the group/player that permission, but
- -(permission) makes sure they don't
-
View User Profile
-
Send Message
Posted Jun 4, 2012@robinjam
Could you please return the old permission behavior (default: false) ? Or maybe a config option to change default perms to false ? I'm having some trouble having the permissions working since they default to true.
Thank you.
-
View User Profile
-
Send Message
Posted Jun 4, 2012@spunkiie
Ah. Looks like the slay command kills you without making you actually take damage, so when my plugin tries to work out what caused the damage everything blows up.
I'll fix that for v1.0.rc2. Thanks for the bug report :P
-
View User Profile
-
Send Message
Posted Jun 3, 2012@robinjam
I'm having this console error with the latest version:
http://dl.dropbox.com/u/43343967/keepitem.txt
The plugins isn't working at all :\
EDIT: Nevermind, I've just found out that the error only happens with the WE command: /slay
-
View User Profile
-
Send Message
Posted Jun 3, 2012Thanks for making this plugin :)
-
View User Profile
-
Send Message
Posted Jun 3, 2012@ThiagoROX
Huh?
If you want players to lose their items but keep their experience, just take away the keep-items.item.* permission.
-
View User Profile
-
Send Message
Posted Jun 3, 2012Could implement a way that permits players to lose items but do not lose XP mean?
-
View User Profile
-
Send Message
Posted Jun 3, 2012@spunkiie
This might be fixed in 1.0.rc1 (pending review now). A lot of permissions stuff has been tweaked though, so please make sure you carefully read the changelog!
@ThatGuy2727
For now, you can restrict this plugin to only apply to deaths caused by specific things, such as drowning, fall damage, or being attacked. Currently it's not possible to restrict it based on what attacked the player, but I'll try and add that feature for v1.0.rc2.