-
Notifications
You must be signed in to change notification settings - Fork 0
Protection cleanup
Every so often you will accumulate a lot of protections. Most of the time, a lot of these protections will belong to inactive players or they may have been protections on blocks that no longer exist.
Warn: The following commands can't be undo after the execution. It's very recommended making a backup before using it.
Remove a protection by using the ID with /lwc admin remove <protection ID>.
Tipp: One way to get the ID of a speficically protection is to use the
/lwc admin find <player> [page]or/lwc infocommand.
You can also delete protections that have not been opened / accessed for a period of time. You can do this by typing /lwc admin expire <time>. An example would be, /lwc admin expire 1 month. This would delete ALL protections that have not been opened / accessed after 1 month.
To exempt blocks from this action, activate the admin protection flag "Exemption" for this block.
Tipp: You retrive the last activity time by using of
/cinfoin the "Accessed" info.
Remove all protections by a player with /lwc admin purge <player>.
To exempt blocks from this action, activate the admin protection flag "Exemption" for this block.
Remove all exists protections in a WorldGuard region with /lwc admin purgeregion <WorldGuard region> [world].
You can cleanup any protections that do not physically exist anymore by typing /lwc admin cleanup. This removes any protections in mid air that do not have a block to actually protect at the coordinate. This command can be run often without any harm being done to existing proper protections.
You can manually delete your database or you use the /lwc admin clear protections command. After these, you must restart the server.