“This block is locked with a magical spell!”
Players can additionally protect certain blocks, and manage those protections with the LWC plugin.
You can protect any chest, barrel, door, trapdoor, fence gate, furnace, blast furnace or smoker, in your name. Only you will be able to access the locked block. You will also get a message in chat if the lock has been successfully created. You can configure who accesses the locks, as well as other options.
You can only lock blocks inside towns, where you have switch Switch permission. Blocks in Wilderness or other towns where you don't have permission can not be locked by LWC. A locked single chest inside claims will also not form a double chest with an unlocked one next to it in Wilderness.
If the plot that the lock is in is unclaimed from the town (whether manually, or by the server e.g. the town fell due to lack of funds for upkeep) then the lock is automatically removed.
Please note that this page includes elements of the Towny plugin, due to the Towny plugin's interactions with LWC.
Type /cprivate
or /lock
and punch a chest, barrel, door, trapdoor, fence gate, furnace, blast furnace or smoker inside claims.
Type /cinfo
and punch the locked block. A table will show in chat about the lock's creator, and the players allowed to use it.
Type /cremove
or /unlock
and punch your locked block.
The lock will be removed, and all players with the Switch permission in the plot the locked block is in will be able to access the block again.
Normally, any LWC command can be used on a locked block once—the command ends after you punch a block, and you have to type it and punch another block again.
If you want to use a command on multiple locks in a row, type /cpersist
first, and then the command you want to keep enabled. For example to lock more chests at once, you would do /cpersist
then /lock
, and then hit every chest you want to lock.
When you are done, to turn it off, type /cpersist
again.
To allow other players access to a locked block, first, you need to give them the Switch permission in the plot the locked block is in.
Type /cmodify (player name) (player name) (player name) …
and punch your locked block. You can add as many player names as you like, separated with spaces.
To remove certain players you gave access to, use /cmodify -(player name) -(player name) …
and punch your locked block. You can remove as many player names as you like, separated with spaces.
The /cmodify
commands can be used many times on the same lock, depending on your preference and needs.
If you want to give someone access to all of your locked blocks, you can grant them a protection trust.
Type /trust add (player name)
to entrust someone. To remove a protection trust, type /trust remove (player name)
.
To view the list of players you have entrusted, type /trust list
.
Always be careful when giving a player access to all your locks.
Flags allow you to configure the behavior and interactions of your locked block, in a number of different ways.
The general format of flag commands is /lwc flag (flag name) (on/off)
or /c(flag name) (on/off)
for short.
Flag name: hopper
In order for hoppers to interact with your owned locked block, you must enable the hopper flag. Type /chopper on
and punch the locked block.
To disable hoppers for your locked block, type /chopper off
.
Note: In Nations, the hopper flag is automatically enabled on your lock. In Towny, the hopper flag is not automatically enabled on your lock.
Flag name: redstone
In order for redstone to power your owned locked block—if the locked block interacts with redstone—you must enable the redstone flag. Type /credstone on
and punch the locked block.
To disable redstone for your locked block, type /credstone off
.
There exist two types of locks in LWC.
A private lock means that the locked block's owner and other players that the owner has granted access to, can access the locked block (provided that they have the Switch permission on the plot). It is the default type of lock, on creation.
A public lock (a not locked block) means that any player who has the Switch permission on the plot that the locked block is in, can access the locked block. However, nobody can choose to lock that block.