Protection Flags - Hidendra/LWC GitHub Wiki

LWC has multiple protection flags which enhance protections in very specific ways. Unless otherwise noted, these can be used by anyone by default.

Assigning a flag to a protection is done by either /cFLAG on|off or /lwc flag FLAG on|off. FLAG would be replaced by the flag's name (if it has any spaces in it, drop them).

When permissions are noted, these are given to players by default unless otherwise noted.

There is no need to mess with any configuration to get these flags to work - they work right out of the box.

Magnet

Permission: lwc.flag.magnet

Chests and other blocks with inventories can become magnetized to allow them to suck in items from around them. This flag can be configured (and even disabled) by editing the file plugins/LWC/magnet.yml

![](http://puu.sh/IeVZ) -> ![](http://puu.sh/IeWj) ![](http://puu.sh/IeYn)

A second or two later…..

![](http://puu.sh/IeYA)

This is most useful for automatic farms and "mob traps", where you can collect items without actually picking them up or being beside the trap or farm the entire time.

Redstone

Permission: lwc.flag.redstone

The redstone flag either disables or enables redstone use on the protection, depending on how the server is configured.

By default this flag will DISABLE redstone on the protection. If the server is configured to block redstone on protections globally, this will instead ENABLE redstone on the protection.

This flag is most useful for preventing redstone from being used on your doors. It is not a simple task in Minecraft to view who triggered redstone so it must either be ON or OFF. However if you attach a pressure plate to your door, you can safely disable redstone and only you will be able to use the pressure plate to open the door.

Auto Close

Permission: lwc.flag.autoclose

By default, LWC will open iron doors when you click on them. However, LWC can also automatically close the door for you after a configured value (by default, 3 seconds).

This flag is intended for when server admins don't want to change doors to automatically close globally. This allows you to make your own doors close automatically by flagging them with this flag.

Allow Explosions

Permission: lwc.flag.allowexplosions

Mainly a novelty flag, it allows explosions to explode the protection and remove it. Not very useful in practice, but it's there.

Hopper

Permission: lwc.flag.hopper

This flag sets the hopper behavior when they're built to insert/extract items from protected inventory blocks, such as chests. By default, hoppers CANNOT interact with protections to prevent griefing. The default setting is configurable from the config file: plugins/LWC/core.yml

Exemption

Permission: lwc.flag.exemption

NOTE: This flag is only usable by LWC admins by default. It is NOT granted to everyone

This flag allows you to flag a protection as exempt from most protection removal commands such as /lwc admin expire and /lwc admin purge

This is mainly useful for servers that like to use /lwc admin expire -- if you have important signs protected by LWC, they may be mistakenly removed by the expire command because they are never used. If they are given the exempt flag, they will not be removed by these commands.

⚠️ **GitHub.com Fallback** ⚠️