Repository navigation
Repair Commands
LederProtections includes diagnostic and repair tools for server maintenance.
Run:
/lep check
This checks the current protection data and reports issues.
/lep repair index
This rebuilds the internal chunk-based lookup index.
It does not modify WorldGuard or protection files.
/lep repair worldguard-members
This synchronizes WorldGuard owners and members using protections.yml as the source of truth.
It can fix desynchronized WorldGuard membership.
/lep repair missing-region
This recreates missing WorldGuard regions from protections.yml.
Use this when:
protections.yml exists
but WorldGuard region is missing
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
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 commands are designed to be safe.
Dangerous actions require a check step before confirm.
LederProtections avoids deleting or overwriting data automatically.
If something seems wrong, run:
/lep check
Then use the specific repair command recommended by the diagnostic result.
| 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 |
Repair commands are recorded in audit logs.
This helps server owners track maintenance actions.