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.
Okay, I can use keep-items.entity.* to keep items on all entities except players. keep-items.entity.player doesn't work at all, is there a permission i'm missing to make it work?
Oh ok
@HelGod
What do you mean? The API hasn't changed since 1.4.5-R1.0 has it?
@GoldenWrapper
I can't think of a way to do this using superperms, but if someone else can come up with a solution and send me a pull request I'd be happy to merge it.
@MCBuncey
The easiest way to implement this would probably be to use a permissions plugin that supports granting permissions to players within certain regions (somewhat similar to multiworld but a bit more localised). I don't know whether any such plugins exist though...
@Darkhand81
That's an excellent suggestion; I'll take a look into it. Thanks for opening the ticket on GitHub.
Can you update the source code?
Can you create a permission for players to drop 1/2 their items instead of none? In the config it's possible to do it with ALL players, but not a certain rank.
would it be possible to add option for support of factions warzone if possible keepitems wont work on that kind of area. like all items will be dropped
Hey robinjam!
Would it be possible to keep items based on enchantment levels or even on custom NBT tags? For example, I'd like to be able to give donors special weapons/armor that are powerful and kept on death. Using other plugins, I could enchant them with level 10 enchants or any other normally-unobtainable enchantment level which would mark the items as donor-only. These items would then stay with the player when they died, since they donated to get them.
A permission like keep-items.enchant.10 could be set to keep all items with an enchant level of 10.
A step further would be a custom NBT tag to mark individual items as keep-on-death, but that might be getting a little too advanced... Enchantment levels would do just fine! :)
I opened a ticket on Github as well. Thanks in advance!
Every time someone dies they keep armor when the dont have the permission to!
Do you know why?
@Donsterrs
Yes.
Do you have MultiWorld support??
@robinjam
i bet its the essentials. Otherwise this plugin works fine but armors are being duplicated and this you know already coz ive told it. Dunno though something wrong with bpermissions perhaps coz people keep losing their exp sometimes even though they had the permission to save them.
@WoZo
Loads of people are having this problem and I just can't work out why - it's working fine for me.
Would you be able to share your list of installed plugins so that I can check for conflicts?
There's a bug when you fall to your death sometimes you lose the items.
@robinjam
this worked.
@semirotta
Explicitly give your donors group keep-items.entity.* and keep-items.cause.* then.
@robinjam
I must have the default group permissions for donor ranks and if i dont have the ^keep-items.entity.* etc. then default group also keeps their items and exp and thats not something i want. You should change this plugin of yours the way that it wont require the perms.
Without permission nodes: You lose everything, from items to exp.
If you have permission node: you keep the ones that permission node allows.
If i remove those perms from default group they start keeping their exp and items :(
@semirotta
It looks like your default group has ^keep-items.entity.* and ^keep-items.cause.*, and your donors group is inheriting these permissions. Try either deleting those lines from your config or explicitly giving your donors keep-items.entity.* and keep-items.cause.*.
Assuming you're the owner, I think the reason it's working for you is because the "owner" group doesn't inherit from default, and so didn't inherit those negative permissions.
@robinjam
http://pastebin.com/S5XajCRx
there is my config for permissions
I am no coder unfortunately, i dont think i could do anything about this. :(
I just wonder why I CAN keep my EXP but others cant.
@semirotta
I'm sorry you're having problems, but it's working fine for me. If you think there's a bug you're welcome to try and fix it, or you could give me a copy of your permissions config so I can take a look at it and see if I can help you.
Or you can wait until the next release and see if that fixes it.
@robinjam
i use bPermissions and this is only plugin that aint working properly..