Skip to content

Repair‐Commands

Alexisleder edited this page May 29, 2026 · 1 revision

Repair Commands

LederProtections includes diagnostic and repair tools for server maintenance.


Diagnostics

Run:

/lep check

This checks the current protection data and reports issues.


Rebuild Internal Index

/lep repair index

This rebuilds the internal chunk-based lookup index.

It does not modify WorldGuard or protection files.


Sync WorldGuard Members

/lep repair worldguard-members

This synchronizes WorldGuard owners and members using protections.yml as the source of truth.

It can fix desynchronized WorldGuard membership.


Recreate Missing Regions

/lep repair missing-region

This recreates missing WorldGuard regions from protections.yml.

Use this when:

protections.yml exists
but WorldGuard region is missing

Orphan Regions

An orphan region is a WorldGuard region that appears to belong to LederProtections but does not exist in protections.yml.

Check:

/lep repair orphan-regions check

Confirm removal:

/lep repair orphan-regions confirm

Aliases:

/lep repair orphans check
/lep repair orphans confirm

Missing Physical Stones

This checks protections that exist in protections.yml, but whose physical stone block is missing or incorrect.

Check:

/lep repair missing-stones check

Confirm repair:

/lep repair missing-stones confirm

The plugin only restores the stone if the block location is air.

It will not overwrite player builds or other blocks.


Repair Safety

Repair commands are designed to be safe.

Dangerous actions require a check step before confirm.

LederProtections avoids deleting or overwriting data automatically.


Recommended Repair Flow

If something seems wrong, run:

/lep check

Then use the specific repair command recommended by the diagnostic result.


Common Cases

Situation Command
Protection exists but region is missing /lep repair missing-region
Region exists but protection data is gone /lep repair orphan-regions check
Protection exists but stone block is missing /lep repair missing-stones check
Members are wrong in WorldGuard /lep repair worldguard-members
Lookup seems incorrect /lep repair index

Audit Logs

Repair commands are recorded in audit logs.

This helps server owners track maintenance actions.

Clone this wiki locally