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.
why i cant keep food or seed ?? with 0 thats not supose to be all items when i died ?
i have all permission at true and my pluggin are
Machinacore keepitem creepercontrol
@MadFactory
This is similar to what I discovered in my issue.
Refer to this ticket...
@SmallzZz8
I'll add it to my todo list, but I can't guarantee it will be done any time soon.
In the meantime, you could take away the keep-items.armour permission to make players lose their equipped armour when they die, and you could take away the keep-items.progress permission to make players lose their progress towards the next experience level when they die.
@robinjam
could you add an option to where you could add armor and xp to the drop chance? that would be awsome!
@SmallzZz8
The drop-chance config option only affects item drops (both hotbar items and inventory items), not equipped armour or experience. Essentially what happens is when you die, the plugin picks a random number between 0 and 1 for each of your item stacks. If that number is above drop-chance, you keep the entire item stack, and if the number is below drop-chance, you drop the entire item stack.
Hello. I love the plugin but one thing seems to be wrong. i have it on the 0.5 drop chance but my players never drop their armor but inventory does and im not too sure about the xp... Do you know what this could be... These are my plugins http://ctrlv.in/329762
@robinjam
Ok thanks. let me try that one
@markGod
The permission nodes you want are keep-items.armor, keep-items.cause.* and keep-items.entity.*. Give a player those permissions and they'll keep their currently equipped armour (and nothing else), when they die of any cause, or are killed by any type of entity.
Is it possible that equipped armor are only be kept? how do I manipulate the config? please help :)
I did some test and here's the problem : i'm using MCPC+ instead of Craftbukkit. I created a Craftbukkit server with the same permissions configuration than my MCPC+ server, and the plugin works fine. So I guess there's no issue... :( Thanks for your help anyway :)
@MadFactory
It should work fine with PermissionsBukkit (that's the permissions plugin I test it with, in fact).
First, double-check that your players definitely have the correct permissions by running
from the console.
Second, double-check that drop-chance in plugins/KeepItems/config.yml is set to 0.
Then, if you still can't get it working, PM me your permissions config and a list of plugins you have installed and I'll see if I can figure out what the problem is.
Does it work with PermissionsBukkit ? I'd wrote the following in my PermissionsBukkit/config.yml file for each group :
But my players still lose their items. I'm using the 1.0rc2 release. And i don't have any plugin relative to the spawn/players death/etc.
@Sotlol1
Use a multiworld permissions plugin, and only give players keep-items.item.* in the world you want them to keep their items in.
Could you please make it per world. So that you can configure if you want the players to keep their items in a world but if they die in another world they lose the items.
@robinjam
Wow. Thank you very much sir. :D
@markGod
I just did a test with DisableRespawnScreen installed. When I respawned most of my inventory was empty, but when I left and rejoined the server all of my items came back. My guess is the client doesn't like it if you skip the respawn screen.
Quickest solution is to either uninstall the DisableRespawnScreen plugin, or have your players reconnect every time they die.
@robinjam
These are my plugins:
AutoSaveWorld BKCommonlib BlazFly ClickSort CreeperHeal DisableRespawnScreen DrugLife EmptyWorldGenerator Essentials EssentialAntiBuild EssentialsChat EssentialsGroupManager EssentialsProtect ExtraRecipes ExtremeRandomSpawn Force KeepItems KillerMoney LevelHealth LoginSecurity Mcmusic Multiverse-Core NoteBlobkAPI PlayerHider PlugMan ProtocolLib ScoreboardStats SecretDoors TagApi TreeAssist UltimateArena Vault WorldEdit WorldGuard
@markGod
Not sure. Do you have any other plugins installed that might be interfering?
When player killed by the player, why is it no weapons/tools drop while the killed player lost the weapons/tools? with all permissions added and in config drop-chance: 0.5
@fungreenfox
Please don't use the /suicide command to test - it kills you without specifying a damage cause, which means it's impossible for KeepItems to determine whether or not you have permission to keep your items.
Try walking into lava or something instead.