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.
@robinjam
the /back command comes from Essentials plugin and thats something i will not get rid of, perhaps i just have to get rid of saving armors in death coz weapon and exp did work. Its a bug in this plugin, it drops the armor part even though its not supposed to :D
@twisted067
The reason that happens is because WorldGuard kills people without specifying a damage type, so KeepItems is unable to check whether the player has permission or not. I might add a keep-items.cause.unknown permission to handle this at some point, but I have exams coming up in under a week so it'll have to wait for now.
The trouble with adding a keep-items.cause.unknown node is that if a player dies for a normal reason (e.g. drowning), respawns, and is then killed by WorldGuard or similar plugins, KeepItems will think the player drowned again. The best solution is to not use commands like /kill or WorldGuard regions that cause damage.
@semirotta
Sounds like a conflict between KeepItems and whatever plugin is providing the /back command. Try uninstalling one of the two and see if that fixes it.
Don't know about anyone else but I am OP , igot all permissions
I got keep-items.* , my donator rank owning players have keep-items.* also
but when i died to enderman just while ago, i kept my items, i kept my xp and all but when i did /back to the spot where i died, there was my armors on ground so now i have duplicated my armory....No errors in console and i am using Keepitems v1.0.rc2 and the server is in bukkit 1.4.6-R4.0
@robinjam
Can you add anything so that OP players always keep their items, and make it so when someone with perms dies by /slay they keep their items
Also I just remembered that I have worldguard region set up to kill players that get where they're not supposed to...sometimes admins die to it and it doesn't specify a death, it just says <player> died. Can you set all this up to work with regaining items upon death with perms?
@Baffu
Currently the only way to do that would be to install a multiworld permissions plugin and only give players permission to keep their items on one world. I'm probably not going to add a config option to achieve the same thing since most servers nowadays have permissions plugins on them.
@twisted067
Yeah, just give admins the permissions you want and take the permissions away from every other user. See here for a list of permissions nodes.
Hey, can I config this so just admins on my server have this? Sometimes my admins like to fight each other and start slaying each other and drop their inventories/armor in places they shouldn't, and people get those. Also does this prevent all drops including armor? and replace it upon respawn?
Would it be possible to just let users keep their things when they die in the world XYZ and all others death would be have as usual. So in other words permissionless!
@Recolance
Yeah, the reason I did it that way was was so people who run small servers with friends can just install KeepItems and not have to worry about permissions. Now that you can disable item loss in vanilla there's no point anymore, so in the next release I'm likely going to remove those default permissions.
I'll be honest, the one thing that kicks my ass about this plugin is that it automatically gives those permission nodes. Because even if I negate them in a group file. When they are negated I cannot reactivate to a specific user within that group. It's just extremely inefficient for my community.
@jithins
Let me just check I understood correctly:
In this situation just taking away the keep-items.entity.* permission and giving the keep-items.entity.player permission instead (on all worlds) should work. If I misunderstood the question please let me know.
hi, can some tell me if i can configure this in this situation - 2 world 1 is pvp the other isnt -i want pvp world when players die from other players not to drop item but i want them to drop items when they die by mobs
@Waterdust2000
I just tested KeepItems v1.0.rc2 on CB build #2570 and it's still working fine for me. If you'd be willing to PM me your plugin list so I can try to reproduce the issue that would be very helpful indeed :)
@lord0o
Working for me on both 1.4.5-R1.0 and 1.4.6-R0.1. What plugins do you have installed (it might be a plugin conflict of some sort)?
Fall isnt working, 1.4.5 dev #2506
@CayleRose
That's what multiworld permissions plugins are for. Take away the relevant permissions globally and then grant them only in worlds where you want players to keep their items.
@robinjam set this up so it will work or only selected worlds. having major issues with this in conjunction with mobarena.
@BLiNdZoRZ
No, unfortunately. When a player without the keep-items.level permission dies, KeepItems will let Minecraft itself decide how much experience to drop. I think the default behaviour is to drop a percentage of your experience (maybe 10%?).
Is there anyway to make it so experience orbs drop when the player dies?
@robinjam
Thanks, I figured it out by myself though. :O
@BLiNdZoRZ
Take away the keep-items.level permissions node. How you do this will vary based on which permissions plugin you're using. For PermissionsEx, for example, use the command "/pex user <username> add -keep-items.level".