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 Oct 22, 2012@Mutg1
By default players are allowed to keep any type of item. To make them drop only one item, taking away keep-items.item.<whatever> permission for that item ID should work.
-
View User Profile
-
Send Message
Posted Oct 21, 2012Hey, robinjam is there a way for me to make it so players drop only one certain item with out having to list every item & block (except the one I want) into the permissions?
-
View User Profile
-
Send Message
Posted Sep 25, 2012@y1985
Ah, OK. Well, glad you got it sorted anyway :D
-
View User Profile
-
Send Message
Posted Sep 25, 2012@robinjam
I just want to make an item that act like a sacred item. If you hold this with you, you won't lose XP when died.
Sorry for my bad English. My words might get you confused. I don't want to setup group permission because my other things was setup by permission node. Default and Admin group is enough for me.
The reason that I need a setup like this so user will feel like they're upgrade their ability. 1. first, lose every thing 2. after they upgrade(get perm) they get 50% XP penalty(the other plugin does that) 3. after 2nd upgrade they hold Lapis to prevent Xp lose(currently unavailable) 4. after final upgrade, they won't lose XP anymore even don't carry lapis
Anyway, I got what I want already so many thanks for supported :D
-
View User Profile
-
Send Message
Posted Sep 25, 2012@y1985
Sorry, I'm really struggling to understand what you're trying to do. You want players to always lose their items when they die but keep their experience as long as they have lapis in their inventory? Do you mind me asking why you want to set it up this way?
If you're trying to set up a group that loses everything when they die (default group) and another group that only keeps experience when they die (VIP group), then this works: https://raw.github.com/gist/3780743/f5910e74d2405b356bfd375f43802fc992d06b4b/config.yml
-
View User Profile
-
Send Message
Posted Sep 25, 2012@robinjam
If you really want the exact Permission file, here it is: http://pastebin.com/raw.php?i=6VDscs04
Scenario: 1. User lose item and XP when die(by mob kill, drowned, fall, explosion, /kill) 2. If they granted Perm, they'll lose only item but keep XP when die(by mob kill, drowned, fall, explosion, /kill)
Anyway, I just go for another plugin and everything is perfect right now. You don't need to fix anything but thanks for all of your support, really appreciated.
The plugin that is use instead has many features but I don't need it. I just want to keep XP when die and if its configurable, I need user to hold something in inventory to prevent XP loss.
e.g. user A has permission and have lapis = keep XP user A has permission but don't have lapis = XP loss user B don't have permission and don't have lapis = XP loss user B don't have permission but have lapis = XP loss
Still never found this feature, if you can take this as a feature request, that would be my pleasure.
-
View User Profile
-
Send Message
Posted Sep 24, 2012@y1985
Or you could let me look at your permissions config so I can work out what the problem is and fix it.
-
View User Profile
-
Send Message
Posted Sep 24, 2012Can you take keep-items.* out from default permission?
This should fix it.
-
View User Profile
-
Send Message
Posted Sep 24, 2012That was the concept. there is no typo here. I was typing from my phone.
-
View User Profile
-
Send Message
Posted Sep 24, 2012@y1985
If that's how your permissions config is set up, then the reason it's not working is because the permissions nodes are keep-items.<whatever>, not keep-item.<whatever> ;)
The reason I want to take a look at your config file is to check for mistakes, and so that I can set up a test server with the same config you're using.
-
View User Profile
-
Send Message
Posted Sep 23, 2012I use like you said
Default group: permission: keep-item.armor: false keep-item.item.*: false
then depends on user who got permission to keep xp get
tester: group: -default permission: keep-item.level: true keep-item.progress: true
Basicly, its like this.
At first, my setup is set evey permissions that keep-item gives by default to false Then give only keep-item.level: true keep-item.progress: true to some user
-
View User Profile
-
Send Message
Posted Sep 23, 2012@y1985
Could you upload your PermissionsBukkit/config.yml file to http://pastebin.com/ so I can take a look at it please? Feel free to edit out people's usernames if you wish.
-
View User Profile
-
Send Message
Posted Sep 23, 2012@robinjam
Thanks for testing. But, I still can't get it to work. At first I think it work, by setting as you post screenshot keep-items.armor: false keep-items.item.*: false
but I realize
This would actually works but only when user died by unknown cause e.g. /kill by server command If you get killed by monster, EXP still keep but item lost.
I already tested: Normal user died(Server command) => Lose both XP&Items When permission granted and die(server command) => Lose only items
Perfect Scenario for me but
Normal user died(drown,creeper) => Lose Items but keep XP When permission granted and die(drown, creeper, skeleton) => Lose only item
So normal user still wrong
Permission that I grant are keep-items.level: true keep-items.progress: true
The EXP bug problem doesn't really matter for me. As long as the actual XP is store. Just kill a couple mob, got Xp sphere and LV should be back. As for testing, I always do logout/in to display XP properly.
-
View User Profile
-
Send Message
Posted Sep 23, 2012@y1985
Looks like PermissionsBukkit doesn't like the keep-items.progress permission node for some reason. I'll take a look into it, but every other node seems to work fine with PermissionsBukkit.
Here's an example config file: https://raw.github.com/gist/3772209/aaa27bde0273ee5d3986c2989ca12968ecab99c5/config.yml
Note that players will only get their experience back when they log out and in after dying. I'm not sure whether this is a bug in CraftBukkit or in this plugin, but I'll look for a workaround when I'm less busy.
EDIT: This works https://raw.github.com/gist/3772247/1a7218e20ae104d0ad780253204d0bd3b09802b7/config.yml
-
View User Profile
-
Send Message
Posted Sep 23, 2012@robinjam
I use the default permission Permissionbukkit
Thanks for reply.
-
View User Profile
-
Send Message
Posted Sep 23, 2012@y1985
Which permissions plugin are you using? I'll download it and give it a try.
-
View User Profile
-
Send Message
Posted Sep 23, 2012@robinjam
That would grant user to keep inventory&EXP because defaults are setting that way
If I set keep-items.* = false and keep-items.level and keep-items.progress. = true it still didn't work because keep-items.* override it so user will not keep anything.
-
View User Profile
-
Send Message
Posted Sep 23, 2012@y1985
Take away keep-items.* and give keep-items.level and keep-items.progress.
-
View User Profile
-
Send Message
Posted Sep 23, 2012Permission works in a weird way and I can't setup my own way.
I want to make normal People lose both EXP and inventory but once they been granted a permission, they keep their EXP but not Inventory how to setup that way?
Edit: ...I gave up. You shouldn't include keep-items.* as a default at least, set it only work for opts.
Can you fix default permissions are keep-items.item.* keep-items.level keep-items.progress keep-items.armor
With this setup I could set each permission separately without problem.
-
View User Profile
-
Send Message
Posted Sep 16, 2012@Kimberly2000
I'm not sure the Bukkit permissions API is supposed to be used like that, but I'll look in to it.