Skip to content

Protection cleanup

RedstoneFuture edited this page Jul 19, 2021 · 14 revisions

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.

Note: It's very recommended making a backup before using one of these commands.

Tipp: To exempt blocks from Protection cleanup actions, activate the Exemption Protection Flag for this block.

Purge by Protection-ID

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 info command.

Purge by Activity

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.

Tipp: You retrive the last activity time by using of /cinfo in the "Accessed" info.

Purge by Player

Remove all protections by a player with /lwc admin purge <player>.

Purge by Region

Remove all exists protections in a WorldGuard region with /lwc admin purgeregion <WorldGuard region> [world].

Nonexistent Blocks Cleanup

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.

Full Database Reset

You can manually delete your database or you use the /lwc admin clear protections command. After these, you must restart the server.

Clone this wiki locally