There are 5 protection types in LWC:
|Public||Anyone can access the protection, but no one can protect it for themselves. Mainly useful for community chests that store items for anyone to use (or a chest in a Factions’ Faction for any faction member to use)|
|Private||By default, only you can access the protection. You can also add other players and groups to the protection so that they, too can access it. So your chest and doors can only let in your close friends and those you choose to add to it.|
|Password||The protection has a set password and you need to enter it each time you login. This can of course be shared with other players — they will be able to access the protection until they log out (after that they will need to re enter it)|
|Donation||Other players can put things into this protection, but won’t be able to take anything out. This can be good for many purposes such as collecting items from people, or crowd sourcing materials for a build.|
|Display||The contents of the protection may be viewed by others, but they will not be able to put anything in or take anything out. Useful for basic shops, showing off items, reading books in lecterns, and so on.|
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
/cremove and 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!
Viewing protection info
As a user or owner of a protection, you can use
/cinfo on 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.
If you’re an OP or have
lwc.admin, you’ll usually see something like this (the extra info is just incase! It’s never all that useful in practice)
Private protections – ACLs
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
/cremove on it.
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
/cprivate you’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
(Note: Towny users can grant access to town residents by prepending town: to the town name. example: /cprivate town:Smithtown )