For Chest Locking we use LWC Extended.
There are 5 protection types in LWC:
Note: Most servers will protect blocks to 'Private' when you place them. This is the default behaviour in LWC. If you want a password chest and it's already protected, simply use the command
/cremoveand then hit your chest to remove the protection first.
Ok great, but how do I create a protection?
Is what you would use for a basic private protection. Password protection is the same deal.
Now pay attention to what happens in the chat box once you hit enter:
Hit your chest and you'll have a protection!
As a user or owner of a protection, you can use
/cinfoon a protection which will let you view information on a protection. An example of this command is below.
Or a private protection, which you own:
You'll probably notice this has an 'Access Control List' (or ACL for short) under it. This is covered more in the next section.
Private protections can have various 'ACLs', or who exactly can access the protection. The owner is considered just that - the owner - and cannot be removed from the protection, only by using
You can add (and remove) ACLs from a protection both when creating it and after you create it. If you wanted to add your friends at the same time you used
/cprivateyou'd use something like:
/cprivate player1 player2 ..and then hit your protection. You'll get something like:
Adding ACLs afterwards is done with
Removing ACLs / players from a protection is as easy as prepending
And finally, entire permission groups (defined in your perms plugin) can be granted to a protection by prepending g:
(You can combine both player and group additions in the same command!)
You can grant an ACL entity (a player or group) "admin" access to the protection. This means that they can use
/cremove) to edit the protection. They will NOT be able to remove the owner (as the owner is outside the bounds of ACL) and thus can only add or remove other players.
This is done by prepending
Additionally, admins will show up in
/cinfoas an admin.
Finally, they can be removed just like any other group/player by prepending