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
@Codisimus
I own the chest thats the weird thing: I can lock it, I can unlock it, I can disown it, I can acces it. But when I punch it with something in my hand it says I dont own it.
This only happens if I set the lock tool to air.
@Noppes
you have to first own the chest, then you may lock it
@PatrizioR
Thanks for finding this for me, I fixed it in Version 1.5.2
Idk why github hadn't changed the commandListener class when a pushed an update to fix it a while ago but I got it fixed now
@dadbot
You are right, the programmer did a mistake:
In class BlockEventListener is a missing "!".
So it has to be: if (!safe.isOwner(player)) { event.setCancelled(true); return; }
I compiled a new version which is correct for now: http://ul.to/zgnar156
(And a second mistake: commandListener.java should start with a capital (CommandListener.java))
Greez Patrizio
I have set LockTool=air and UnlockToOpen=false
Everytime I now left click a chest with something in my hand it says: This chest does not belong to you.
@LucidLethargy
I provided a link at the bottom to an alternate version that instead uses the command /cl
or you can simply edit the plugin.yml file and change the command to whatever you want
@LucidLethargy
I'll allow an alternate download that uses the command /cl
@dadbot
you can only destroy chests if you are the owner or an admin
@watarimon
upgrade to each new version until you get to the most recent build
Ive been using v1.1 for a long time and am planning to upgrade to 1.5.0. Is there a way to convert the old chestlock.save file to the new format? automatic or manual doesn't matter as long as I can convert it. I would rather not have to start over with a clean file, hundreds of chests and doors...
Love the plugin: great interface and easy to admin. But I noticed chests can be destroyed by other players even if they can't open them. Am I doing something wrong here?
LWC no longer works in tandem with this plugin, could you create some aliases for us to correct this problem? /lock simply is taken by LWC now... already told him about this as well.
@user_926029
If you don't have a permissions plugin the permissions are decided based on if you're an OP
@user_926029
Okey skip that, after a server restart it was working again. But it's still charging 0. Are there like.. hidden permissions inside the plugin or something?.
And now suddenly only the admin can "own" boxes. Wtf's with this ;s?
Guess this was a mystery..
Well, I haven't added any nodes, (I guess you're talking about permissions, not really clear about everything yet) so how could that be affecting it? Or am I wrong on it?
@user_926029
you will not be charged if you have the 'chestlock.free' node
How does the "CostToOwn" setting work?.. I have vault and iconomy installed and I've changed the CostToOwn to 10 but I'm never funded more than 0 dollar..
Help please
I have fixed the thing, forget to install Vault :P sry
Big problem, I can't install the plugin, the bukkit console appear this:
[SEVERE] Could not load 'plugins\ChestLock.jar' in folder 'plugins': Vault
org.bukkit.plugin.UnknownDependencyException: Vault
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin<JavaPluginLoader.java:135>
at org.bukkit.plugin.java.SimplePluginManager.loadPlugin<SImplePluginManager.java:215>
at org.bukkit.plugin.java.SimplePluginManager.loadPlugins<SImplePluginManager.java:136>
And many many more @_@
Pls help me, I will give you the infomation you need.