BlockLocker
Limiting BlockLocker protections to GriefPrevention claims and chosen worlds, and removing them when a claim goes away.
This extension connects the BlockLocker plugin, where players lock chests and doors with a sign, to
GriefPrevention claims. Players can lock things only inside claims, and when a claim is deleted or
made smaller, the locks left outside it are removed, so nobody keeps a locked chest in the open
wilderness. File: configs/extensions/BlockLocker.yml. Module name: BlockLockerPlugin.
It needs BlockLocker. The claim rules and the cleanup also need GriefPrevention; without it the extension says so in the console and keeps only the world rule.
useWhitelistWorlds is on and whitelistWorlds is empty by default, so players cannot lock anything
in any world until you list the worlds where locking is allowed, or turn useWhitelistWorlds off.
Settings
All keys are under blockLockerSettings.
| Key | Default | Meaning |
|---|---|---|
enabled | true | Turns the extension on or off |
useWhitelistWorlds | true | Allow locks only in whitelistWorlds |
whitelistWorlds | empty | The worlds where players may lock |
message | "You cannot create protections in this world." | Shown in other worlds |
onlyGriefPreventionArea | true | Allow locks only inside a claim |
onlyGriefPreventionAreaMessage | "You can only create protections inside a claim." | Shown outside claims |
cleanupOnClaimDeleted | true | Remove the locks of a claim when it is deleted |
cleanupOutsideResizedClaim | true | Remove the locks left outside when a claim is made smaller |
useBypassPermission | false | Whether bypassPermission is checked |
bypassPermission | uxmpvpcore.blocklocker.bypass | Players with it may lock anywhere |
blockLockerSettings:
enabled: true
useWhitelistWorlds: true
whitelistWorlds:
- world
- world_nether
onlyGriefPreventionArea: true
cleanupOnClaimDeleted: true
cleanupOutsideResizedClaim: true
Cleanup
When a claim is deleted, by its owner, by staff or by expiration, the extension goes through its chunks and removes the BlockLocker signs inside the old claim. It works a few milliseconds per tick, so a large claim is cleaned over several seconds without lag. Chunks that are not loaded are loaded for it.
The chest or door itself stays; only the lock is removed.
Related: GP Expiration, Integrations
Was this page helpful?