Chest lock

LWC is a protection plugin for blocks such as chests, furnaces, doors, or anything else you can think of! It can protect these blocks either automatically or manually, with additional configuration as required. LWC is perfect for giving your players peace of mind, regardless of if you run a small server, or a large network.

LWC was originally just a chest protection plugin for MineCraft. It is now a multipurpose block protection plugin that can protect anything you want it to (but by default normally just containers, etc).

## Protection creation

`/cpublic` - *Create a public protection*

Alias of `/lwc -create public`, or `/lwc -c public`

Anyone can use a public protection, but no one can unlock it except for the owner.

`/cprivate` - *Create a private protection*

Alias of `/lock`, `/lwc -create private`, or `/lwc -c private`

Private means private: only you are able to access the protection unless you grant other users or groups access as well. This is done by adding them to the end of the command. You can add more than one user and/or group per command.

When you prefix a user or group with an `@`, this user/group will be able to modify the protection to add or remove other users. They cannot disable the owner from modifying it.

Examples:

`/lock` - creates a private protection for yourself

`/cprivate Hidendra g:moderator` - creates a private protection for yourself, Hidendra, and the moderator group

`/lwc -c private @pop4959` - creates a private protection for yourself, and pop4959, who may also modify the protection

`/cpassword` - *Password-protect a block*

Alias of `/lwc -create password`, or `/lwc -c password`

Every time you log in you need to re-enter the password to access the protection. Anyone who knows the password can access the protection.

`/cdonation` - *Create a donation protection*

Alias of `/lwc -create donation`, or `/lwc -c donation`

Anyone can put items inside the protection, but they cannot be taken back out.

`/cdisplay` - *Create a display protection*

Alias of `/lwc -create display`, or `/lwc -c display`

Anyone can view the protection's contents, but cannot modify them.

## Protection management

`/cmodify` - *Modify an existing protection*

Alias of `/lwc -modify`, or `/lwc -m`

Each modification either grants access (by default), removes access (using `-`), or gives admin access (using `@`) on the protection. The target of the modification can be a player, a group (using `g:<group>`), or a town (using `t:<town>`). Several modifications can be made in a single command by separating each one with a space.

Examples:

`/lwc -m pop4959 @Hidendra` - adds pop4959 to the protection, and Hidendra as protection admin

`/cmodify -Hidendra -pop4959 -MeGoesRawr` - removes access to the protection from Hidendra, pop4959, and MeGoesRawr

`/cmodify -g:member` - removes access to the protection for the "member" group (tested with Vault)

`/cmodify t:berlin` - grants access to the protection for all members of the town "berlin" (tested with Towny)

`/cremove` - *Removes protection from a block*

Alias of `/unlock`, `/lwc -remove`, or `/lwc -r`

`/cunlock` - *Unlock a password-protected block*

Alias of `/lwc -unlock`, or `/lwc -u`

`/cinfo` - *Punch a protection to view information on it*

Alias of `/lwc -info`, or `/lwc -i`

`/climits` - *View the number of protections you own, and the number you are allowed to create*

Alias of `/lwc -info limits`, or `/lwc -i limits`

## Protection flags

`/credstone` - *Toggles whether redstone should affect the protection*

Alias of `/lwc flag redstone`

`/cmagnet` - *Put nearby dropped items into the protected chest (or other blocks with inventories)*

Alias of `/lwc flag magnet`

`/cautoclose` - *Automagically close a protected door if it was opened*

Alias of `/lwc flag autoclose`

`/callowexplosions` - *Allows the protected block to be destroyed by an explosion*

Alias of `/lwc flag allowexplosions`

`/chopper` - *Controls whether or not hoppers can be used on a protected block*

Note: This flag is functionally equivalent to adding both hopperin + hopperout flags.

Alias of `/lwc flag hopper`

`/lwc flag hopperin` - *Controls whether or not hoppers can be used to place items into a protected block*

Note: This flag is not supported when using alternative hopper protection.

`/lwc flag hopperout` - *Controls whether or not hoppers can be used to take items out of a protected block*

Note: This flag is not supported when using alternative hopper protection.

`/cexempt` (admin-only) - *Protection is exempt from being auto removed from LWC*

Alias of `/lwc flag exemption`

For more information read Protection Flags

## User modes

Persistent mode will let you perform your last action on several blocks without needing to re-type the command.

`/cpersist` - *Turns on/off the persist mode*

Alias of `/lwc mode persist`

Drop transfer mode makes dropped items automatically go to a designated chest.

`/cdroptransfer`

Alias of `/lwc mode droptransfer`

`/cdroptransfer select` - *Select the chest drops go to*

`/cdroptransfer <on/off>` - *Enable/disable the droptransfer*

`/cdroptransfer status` - *Display the status of the droptransfer*

No lock mode will disable automatic protection creation.

`/cnolock` - *Turns on/off the no-lock mode*

Alias of `/lwc mode nolock`

No spam mode will disable protection creation messages.

`/cnospam` - *Turns on/off the no-spam mode*

Alias of `/lwc mode nospam`