Merchants and Marauders Minecraft
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Merchants and Marauders Minecraft

Minecraft IP: 198.23.148.214:25665 Teamspeak IP: buf-voice.fragnet.net:10077


You are not connected. Please login or register

LWC - The most unloved yet amazingly useful protection-plugin

4 posters

Go down  Message [Page 1 of 1]

[Dev] Julia



LWC - The most unloved yet amazingly useful protection-plugin

LWC
It's the protection plugin of our Server for containers of any type, and doors of any kind.
LWC based protection is available on the server in Town-areas in the Towny world. LWC keeps your items or houses safe from preditors with an access control-system.
While an LWC protection is automatically applied to any item-holding container you place, it can also be manually applied to doors, fence gates and trapdoors to control access to an area.
The Protection LWC offers extends over the lifespan of a Town, keeping items safe even after a town has fallen.

LWC also sadly is one of the most unloved plugins of them all.

Thats mostly due to lack of knowledge how to utilize the plugin to its full potential.
In this thread I’m going to show you the functions and tricks with LWC you should keep in mind.

1. Protection Types
LWC has 4 basic protection types:
The „normal“ protection-types:

1. The Private-protection
   -> This protection type is used to lock any container by default
- By default only you, the creator of the protection has access
Applies to: containers, doors and gates

2. The Public-protection
    - Everyone has access to the protection but only you own the protection
    -> Useful for preventing other players from claiming your containers or gates
Applies to: containers, doors and gates

The „special“ protection-types:

3. The Password-protection
    - The creator sets a password that has to be entered to open the gate/container.
    -> Useful for protections that have to be accessed by a yet unknown amount of players/time.
Applies to: containers, doors and gates

4. The Donation-protection
    - Everyone can open the container, see what’s inside and place items inside,
 but only you can, by default, remove them
    -> Useful for Donation-boxes (duh) and for lend-item-returns.

2. Setting a Protection-Type
To set a protection type to a container/gate you must first remove the already existing protection on your block

You can check for any protections with the /lwc -i or the /cInfo command.
If you are the owner of the protection its as simple as running /unlock and punching the block to unlock it,
if you are not the owner, contact the owner or get an SMod to help.

If the block is not registered or you successfully unregistered it you can then choose a new protection type and apply it.

Run one of the following commands according to the protection-type you want to apply:
/cPrivate or /lwc -c private -> Creates a Private.Protection
/cPublic  or /lwc -c public -> Creates a Public-Protection
/cPassword Yourpasswordhere  or  /lwc -c password Yourpasswordhere
-> Creates a Password-Protection
/cDonation or /lwc -c donation    -> Creates a Donation-Protection
After you have run the command punch the block to apply the new protection.

3. Block-Access modification

For the protection types Private and Donation there’s an additional access-control-system available.
These specific two protection types have 4 access control-levels:

1. Protection-Owner
- Can fully access the block (eg remove items/see whats inside)
- Can grant/revoke access rights to the protection
- Can grant/revoke modification rights to the protection
- Can modify protection based flags (see #4)
- Can remove the protection / change the protection-type

2. Protection-Admin
- Can fully access the block (eg remove items/see whats inside)
- Can grant/revoke access rights to the protection
- Can grant/revoke modification rights to the protection
- Can modify protection based flags (see #4)

3. Protection-Trusted
- Can fully access the block (eg remove items/see whats inside)

4. Protection Untrusted
- Can only do what’s given by default for the protection

Here is how to change the access control-level:
The access control level can be controlled in a few different ways,
all of these ways use the /cmodify command, and here’s how to use it correctly:

1. Per individual player
Add an individual:
/cmodify playername -> Grants the player the Trusted block-access
/cmodify @playername -> Grants the player the Admin block-access
Remove an individual:
/cmodify -playername -> Changes the player to Untrusted

2. Per Town
Add a town:
/cmodify town:townname -> Grants ALL players in the town the Trusted block-access
/cmodify @town:townname -> Grants ALL players in the town the Admin block-access
   I do NOT recommend using this one, might cause some confusion…
Remove a town:
/cmodify -town:townname -> Changes the town to Untrusted

3. Per server-permission-group (rank)
Add a group:
/cmodify g:groupname -> Grants ALL players in the group the Trusted block-access
/cmodify @g:groupname -> Grants ALL players in the group the Admin block-access
   I do NOT recommend using this one either!! For obvious reasons….
Remove an individual:
/cmodify -g:groupname -> Changes the group to Untrusted

Execute one of the above commands and punch the block to save.

4. LWC Protection flags

This is where the fun stuff comes in.
LWC has some cool protection „flags“ to it.
These flags do, when applied various useful things, here is a list of them:

1. Hopper - for containers only
-> Probably the most used flag, it allows the container to interact with hoppers like a normal non-
    locked container would.
This flag can be applied using
/lwc flag hopper on -> Allows Hopper interaction
/lwc flag hopper off -> Disables Hopper interaction
NOTE: Hoppers can only be placed on the protected block by people who either have admin or owner protection rights!

2. Redstone - for door/gates/droppers or dispensers only
->  Allows either of the listed to interact or be used with redstone signals
This flag can be applied using
/lwc flag redstone on -> Allows redstone interaction
/lwc flag redstone off -> Disables redstone interaction
NOTE: Redstone can only be placed on the protected block by people who either have admin or owner protection rights!

3. Autoclose - for door/gates only
->  Automatically closes the gate/door after a few seconds of being open
This flag can be applied using
/lwc flag autoclose on -> Activate autoclose
/lwc flag autoclose off -> Disable autoclose

4. Magnet - for containers only
->  Automatically picks up all items within a 4 block radius in all directions of the container after a few seconds.
This flag can be applied using
/lwc flag magnet on -> Enable magnet
/lwc flag magnet off -> Disable magnet

4. Allowexplosions
->  Does what it says, toggles the internal explosion protection in the chest area of effect
This flag can be applied using
/lwc flag allowexplosions on -> Enable explosions
/lwc flag allowexplosions off -> Disable explosions
WARNING: This is for a reason off by default. Turning it on might not only result in lost items but a broken protection too.

After running one of the above commands punch the block to save.

5. Wow you are still here?

Here are some neat tricks that might make your life easier with LWC:
If you are doing an LWC command many times in a row you can make that command stick to you:
Toggle /cpersist and the next command you type will be auto-executed on any container/gate you touch.
Use /cpersist again to disable.
Also if you are not Owner/Admin of an protection /cInfo or /lwc -I doesn’t show you who has access to the block
besides the owner but you can view that anyway with /lwc owners if you must.

Thanks for reading this explanation for LWC, one of my favorite plugins,
I hope you learned something!
-Julia

PerfectKayla

PerfectKayla

Thank you, Julia, for the helpful tips you have provided for the community. If anyone is ever curious of this plugin, Im sure they will find everything they need for it here. This is very informative for new players, and Im sure this will help someone down the road.You've gone out and looked up the plugin for us, and gave us the information from assorted websites- having cut searching time in half. Woot woot!

[Dev] Julia



PerfectKayla wrote:You've gone out and looked up the plugin for us, and gave us the information from assorted websites- having cut searching time in half.
Well no I never googled anything about the plugin, I figured out everything on my own and only validated it with the wiki, nonetheless this post needs some examples-
I might add some later on, thanks for the feedback!

Pyrokarl1



Best tutorial on an essential plugin.

TheBlueCraftGamer

TheBlueCraftGamer

To long refuse to read

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum