DUXPLIMA Documentation

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.

Add your worlds

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.

KeyDefaultMeaning
enabledtrueTurns the extension on or off
useWhitelistWorldstrueAllow locks only in whitelistWorlds
whitelistWorldsemptyThe worlds where players may lock
message"You cannot create protections in this world."Shown in other worlds
onlyGriefPreventionAreatrueAllow locks only inside a claim
onlyGriefPreventionAreaMessage"You can only create protections inside a claim."Shown outside claims
cleanupOnClaimDeletedtrueRemove the locks of a claim when it is deleted
cleanupOutsideResizedClaimtrueRemove the locks left outside when a claim is made smaller
useBypassPermissionfalseWhether bypassPermission is checked
bypassPermissionuxmpvpcore.blocklocker.bypassPlayers 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