Skip to content

Block Protection

DEVKruidenier edited this page Nov 25, 2026 · 7 revisions

Personal Block Protection

This guide applies to LandWard builds that include Block Protection. No additional protection plugin, command, sign or special item is required.

Protecting a block

Open your land menu, choose Block Protection → Protect Block, then right-click an eligible block inside that land. Sneak and left-click to cancel. Selection expires after 60 seconds and is cleared on logout and configuration reload. An invalid block attempt also ends selection, so ordinary block placement is not intercepted afterwards.

Choose Private to create a personal lock and close the menu after a successful save. Shared first creates a private lock and then lets you grant access to selected members. Each member's head shows their current access. An empty sharing list is private. You can manage existing locks through My Protected Blocks without travelling to each block.

The Block Protection menu groups block selection and lock management. The clip walks through its buttons and opens My Protected Blocks.

Exploring Block Protection and opening My Protected Blocks.

Protect Block closes the menu and shows a chat prompt to right-click an eligible block. The clip ends while selection mode is active.

Starting block selection and reading the chat prompt.

My Protected Blocks lists your locks. The clip highlights the doors, copper chest and shulker box, then opens the chest's settings.

Reviewing the entries in My Protected Blocks.

The chest's Block Protection settings show private access, sharing and removal. The clip opens Shared.

Exploring the access and removal controls for a protected chest.

Shared lists eligible land members. This test land has none, so the clip shows the empty screen and returns to the block's settings.

Opening and leaving the empty Shared access screen.

Members can protect blocks that LandWard recorded them placing. For older blocks without a recorded placer, only the current land owner can create the first lock. Even the land owner cannot claim another member's recorded placement. This avoids letting members seize shared or pre-existing storage. LandWard does not scan old worlds to guess block ownership.

Supported blocks and access

  • Normal, trapped and copper chests, including double chests and all oxidized/waxed copper variants.
  • Barrels and shulker boxes, including colored variants.
  • Doors, trapdoors and fence gates supported by the server's material tags.
  • Levers and buttons, including the server's supported button variants.

A double chest and a two-part door each have one logical lock. Access through either half uses the same record. The personal owner can expand their own single chest into a double chest; its identity, owner and shared access are retained. A separate adjacent chest is also allowed. Personal owners can break blocks they locked when they have ordinary building rights. Breaking either half of a door removes the complete door and its lock. For a double chest, the surviving half keeps the same protection and sharing. Breaking the last half removes its lock. Other players must use the authorized lock-management flow. A double chest counts as one lock toward the configured limit.

The lock owner and explicitly shared eligible members may use a block only when ordinary land rights and other applicable protections also permit it. Sharing never grants container or interaction rights that the land denies. Lock ownership uses UUIDs, so a username change does not change the owner.

Land-owner and administrator management

Manage All Protections lists every lock in the selected player land and can filter by owner. The land owner may remove a problematic lock after confirming that normal land access will be restored. This does not change its personal owner or silently edit another member's sharing list.

Hover over an entry in Manage All Protections to see the block type, owner and current access. The clip then opens the owner filter.

Exploring protected blocks and opening the owner filter.

In Filter by owner, choose a player's head to show only their protected blocks.

Filtering the protected-block list by owner.

Remove Protection opens a confirmation screen. The clip hovers over Confirm, then chooses Cancel to leave the protection in place.

Reviewing and cancelling the block-protection removal prompt.

land-owner-bypass: false prevents the land owner from directly opening another member's private storage. Administrative record management and direct access use separate permissions:

Permission Default Purpose
landward.protection.create Everyone Create eligible personal locks in a player land you own or belong to.
landward.protection.own Everyone Manage locks owned by your UUID.
landward.protection.manage Everyone Manage lock records in a land you currently own. Does not grant inventory access.
landward.admin.protection.manage Operators Manage personal lock records through the land overview in ClaimAdmin.
landward.admin.protection.bypass Operators Bypass personal LandWard locks. Normal claim access and other plugins' restrictions still apply.

The ordinary /claim bypass toggle does not itself bypass personal locks. Server-owned Safe Zones do not support personal block locks.

Leaving, removal and ownership changes

The member land menu provides Leave land when this feature is enabled. Its confirmation shows the number of personal locks and warns that storage can become accessible under ordinary land permissions. Leaving or being removed deletes that member's locks and removes their entries from other sharing lists in the same land. Offline members are handled by UUID. Physical blocks and contents are preserved.

An ownership transfer does not transfer personal locks. The new owner receives management rights immediately. The former owner retains locks only if they remain a member; otherwise their locks and sharing entries are removed. Other eligible members keep their locks. A transfer affecting personal locks requires confirmation.

Deleting a land deletes its lock, sharing and placement records. Unclaiming a chunk removes the locks touching that chunk, including an entire double-chest unit spanning a boundary. Reclaiming does not reactivate those locks. These operations preserve blocks and contents.

Automation and physical changes

Hopper ownership is recorded when a land owner or member places the hopper. A hopper owned by the same player as the protected chest can transfer its items. The placing UUID must be known; access to a hopper or proximity to a chest is not proof of ownership. Place older, unrecorded hoppers again to establish that ownership. Hopper minecarts and foreign/unknown hoppers cannot extract from private storage.

Connected hoppers with that same recorded owner form a protected automation extension. Their inventories cannot be opened or broken by unauthorized players, and foreign hoppers cannot drain them. Ordinary hopper networks away from private storage keep their normal land behavior. The hopper owner may move their own hopper; redstone can still pause hoppers normally. Ownership is not inferred for other players' hoppers, even if they sit immediately below a private chest.

Output containers must also be protected by the same owner, so a public output chest cannot become a route around private access. Shared players may use the hopper inventory only if every protected source connected to that network allows them; normal container permissions remain authoritative. This prevents a shared chest from exposing another, unshared chest through a common hopper. Land-owner and administrator bypass follow those same source protection rules. These derived hopper protections need no extra GUI lock and do not consume extra personal-lock quota. Removing the originating storage locks restores ordinary hopper permissions. The cached topology uses stored coordinates, not world scans or per-transfer database queries.

Pistons, relevant dispenser actions, explosions, fire, fluid replacement and entity block changes cannot move or destroy a locked unit. Supporting blocks beneath protected doors and backing blocks for protected controls are protected from destruction too. Unattributed entity interactions cannot press a protected wooden button. Protecting a lever/button controls who may operate it; it does not automatically make its entire redstone circuit private.

Locked access blocks reject unattributed redstone, including power originating from buttons, levers, pressure plates and observers. Authorized players operate wooden and copper doors directly, with both halves moving together. A nearby protected lever can operate an iron door when the blocks share an owner and player land, the player can use both blocks, and the lever is adjacent to the door or reaches it through its supporting block. Existing event cancellations still apply.

Block changes observed while protection is disabled invalidate destroyed/replaced records without denying the underlying change. Chunk loading checks known recorded locations rather than scanning world blocks. Administrative world edits made outside Bukkit's events, especially replacing an identical material while the server is offline, cannot be attributed reliably. Remove obsolete locks in the management overview after such edits. No protection system can defend against another plugin deliberately bypassing server events.

Configuration and storage

block-protection:
  enabled: true
  auto-protect: false
  max-blocks-per-player: -1
  land-owner-bypass: false

Fresh configurations enable the feature. Existing configuration files without an explicit block-protection.enabled value are migrated with false, so an update does not unexpectedly enable personal locks. Set it to true to opt in. auto-protect locks eligible placements by players with creation permission; otherwise they use the GUI. The maximum applies per player across all their lands; -1 is unlimited and 0 prevents creating new locks.

Use /claimadmin reload to apply settings; no restart is required. Disabling hides the menus, prevents selection and edits, and stops all personal access and automation denials. Existing claim rules continue operating. Stored lock data is preserved, and known replacements/destruction and membership changes still clean up the corresponding obsolete records. Placement ownership continues to be recorded so enabling the feature does not let members seize new shared storage. Re-enabling uses current membership and ownership, not cached former-owner rights.

SQLite, MySQL and MariaDB store locks, unit positions, sharing lists and placement generations. LandWard migration verification and versioned backups include all these records. An uncertain or failed write denies access to the affected locations while the feature is enabled and logs diagnostics instead of silently granting access. Investigate the server log before retrying or restarting.

When using an external lock plugin, disable LandWard's personal block protection to let that plugin operate independently. LandWard never un-cancels another plugin's event or grants bypass rights over WorldGuard, vanilla spawn protection or Essentials AntiBuild.

Recovering from storage failures

Failed ownership writes are recorded in block-protection-quarantine.txt, so a restart does not discard their safety block. Do not delete this file to bypass a warning. Repair the storage problem first and verify the physical blocks and ownership. A confirmed administrative lock removal clears the corresponding failure entries after its database transaction commits; an observed, successfully saved replacement also clears its entries. Back up the full LandWard folder.

If the failure journal itself cannot be verified, personal block access in player lands stays blocked. If storage cannot be loaded at startup while this feature is enabled, LandWard keeps configured claim worlds temporarily read-only instead of disabling protection and exposing unverifiable blocks. The console explains the error. Repair storage and restart to return to normal operation. This emergency state is distinct from intentionally setting enabled: false.

See also FAQ: Personal Block Protection.

Clone this wiki locally