ChestLock
Version 1.7.1
NOTE: This plugin requires you have Vault enabled on your server
This is a very quick and easy way to protect your Chests. No commands needed (except for advanced features)
- When a chest is locked noone can open it, not even the owner.
- When a chest is unlocked everyone can open it.
- Only the owner can unlock/lock a chest.
- An admin* can however unlock a chest if he is holding dirt (configurable)
- Only the owner and admins* can destroy owned chests
- In order to disown a chest a player must punch it while holding dirt (configurable)
- admins are defined by having the permission node chestlock.admin (or isOp() if PermissionsEx is not installed)
Features:
- Supports all major Economies and Permission Plugins thanks to Vault
- You can customize what command this plugin uses by editing the plugin.yml (found inside the plugin jar file)
- MultiWorld support
- Configurable properties
- Custom messages
- Simple lock/unlock
- Quick to claim (no looking up confusing commands) Just Punch it!
- Lock Chests, Furnaces, Dispensers, Iron Doors, Wood Doors, Trap Doors, and Fence Gates
- Limit the amount of Chests/Furnaces/Dispensers/Doors Players can lock
- Configure which items unlock/own/disown
- In game tool list (/lock list tools)
- Add CoOwners who can also lock/unlock
- CoOwners can be a specific Player or a specific Permissions Group
- Make chests/doors unlockable so users can't claim them
- Doors can be locked so they can only be open using a specific key
- Hold an item and click on a Locked door to try to use that item as a key
- Players who do not log in to the server in a set amount of days will have their chests automatically disowned (optional)
Permission Nodes:
- chestlock.lock = Needed to own/lock/unlock a chest/furnace/dispenser/door (/lock)
- chestlock.usekey = Needed to open a locked door
- chestlock.list.chests = Needed to list how many chests/furnaces/dispensers you own and their locations (/lock list chests)
- chestlock.list.doors = Needed to list how many doors you own and their keys and locations (/lock list doors)
- chestlock.list.owner = Needed to see who the owner and CoOwners are of the target chest/furnace/dispenser/door (/lock list owner)
- chestlock.list.clear = Needed to disown all of your chests/furnaces/dispensers/doors (/lock list clear)
- chestlock.coowner = Needed to add a CoOwner to your chest/furnace/dispenser (/lock coowner)
- chestlock.free = Lock chests/furnaces/dispensers free of charge
- chestlock.admin = Needed to access other Players' chests/furnaces/dispensers/doors
- chestlock.limit.[type].[x] = limit the number of blocks a player can own (largest number is taken if player has more than 1 node)
- type = chest, furnace, dispencer, or door
- x = -1(no limit) or a number 0 through 100
- ex.
- chestlock.limit.chest.-1 = can own any number of chests
- chestlock.limit.furnace.23 = can own up to 23 furnaces
- chestlock.limit.dispencer.0 = cannot own any dispensers
- chestlock.limit.door.100 = can own up to 100 doors
Commands:
[] indicates a required field.
- /lock - Locks the target door with the specified Item. You then must use that type of item to open the Door. If you are not holding anything then the target Door will be set as unlockable
- /lock never - Sets the target Chest/Furnace/Dispenser as unlockable
- /lock coowner group add [Name] - Adds the specified Group as a Co-Owner of the target Door/Chest/Furnace/Dispenser
- /lock coowner group removes [Name] - Removes the specified Group as a Co-Owner of the target Door/Chest/Furnace/Dispenser
- /lock coowner player add [Name] - Adds the specified Player as a Co-Owner of the target Door/Chest/Furnace/Dispenser
- /lock coowner player add [Name] - Adds the specified Player as a Co-Owner of the target Door/Chest/Furnace/Dispenser
- /lock list tools - Lists all of the ChestLock tools that you may use to Own/Lock/etc. Chests, Furnaces, and Dispensers
- /lock list door - Lists all of the Doors that you own
- /lock list chest - Lists all of the Chests that you own
- /lock list chest - Lists all of the Furnaces that you own
- /lock list chest - Lists all of the Dispensers that you own
- /lock list owner - Lists the Owner and Co-Owners of the target Door/Chest/Furnace/Dispenser
- /lock list clear - Disowns all of your Doors, Chests, Furnaces, and Dispensers
Tutorials:
Setup:
To Lock a Chest:
- Place a chest
- Punch it - Now you are the owner and only you can lock/unlock it
- Punch it again - Now the chest is unlocked!
To Lock a Door:
- Target the door and type "/lock" - The item in your hand is set as the key
- Click on the door while holding the 'key' to open the door
Video:
Video by 0zyke
hi i love this plugin! can you plz update when you get the time? :)
Is there anyway to disown yourself to a specific chest/dispenser/furnance instead of everything? Also is it possible to remove/change the key to a door?
I am having a problem. When I try and do coowner on my server it just shows the list of commands. The other commands have been working good but we can not get coowners to work. is there a way I can manually add them?
@Codisimus
I agree with MontegroDK in that it would be cool to have key items for chests. So maybe an option in the config file that is a Boolean and determines if the server will use co-owners or locks for chests?
Anyway this is still my favorite lock plugin!
Seems to be an issue with the coowner function and the /lock never...
Annoying, but not breaking. Could you look into this?
By a wide margin my favorite locking plugin. Keep up the great work :D
I set another person on the server I play on as coowner, the chat window showed that it worked, but when I do a /lock list owner and he does not show up as a coowner, why?
Does it work with Tekkit?
Yea, this is a great plug-in. No need to add any more features to the microwave :)
@MontegroDK
idk about hooking into factions... I think I had trouble with that in the past
@MontegroDK
I don't see the point of having key items and coowners...
@Codisimus
But yeah, it would be brilliant to have chests Lock/Unlock with Key Items, yet still have owners and co-owners
@Codisimus
Well, both would be awesome. Right now, we're currently using another Lock Picking plugin that has a work-around for all chests and doors and such. But if we could get yours with the Lock-picking set up and have it sort of hook into Factions, that would be great. Cause we don't want people, who are offline, to have their things picked into and stolen.
@MontegroDK
You mean instead of the lock picking feature? that would proly be a lot easier.
Is it possible for you to fix it so the different key's thing works for the Chests as well as the Doors? Could you also make it so it capitalizes the chests instead of saying 'chest is now locked.'?
@harryjamesuk
You must have a plugin conflict. Look at the video above to learn how to change the command from /lock to something that won't cause conflicts.
Some reason, when I type /lock it says "Server has entered lockdown mode"
@MontegroDK
I just don't think ppl should be able to stand there and keep clicking it until they eventually pick it.
@Codisimus
That's actually an interesting thought, you mean like a Lockpicking ability? I was leaning more towards just a simple lockpick where you use like an iron ingot to try to lockpick. But I defunately would like something people could rank up in.
@MontegroDK
I was going to add that a while back but wasn't sure how it should function. Is this something that Players would rank up in?
My servers looking for a new chest locking system, however we'd prefer it if there were a way to lockpick other peoples chests. Might you be able to release a new version soon with the ability to set up lockpicking?