DUXPLIMA Documentation

Land protection

Refusing to build where the player cannot, and stopping when the land changes hands.

A build is checked against land protection before money changes hands, while the preview is open, and again every few seconds while it builds. A player can only build what they could have built by hand.

Providers

IdPluginPriority
worldguardWorldGuard10
griefpreventionGriefPrevention20
townyTowny30
plotsquaredPlotSquared40
uxmclaimsuxmClaims50
bukkitEventAny other plugin, through a fake block-place event900

Each provider is on only when its plugin is installed and its switch under protection.providers is true. A protection plugin that enables after uxmBuilders is picked up when it loads. /builders admin protection lists every provider with its priority and whether it is available.

How a box is checked

ModeA build is allowed when
STRICTNo active provider denies it; the first denial decides
PERMISSIVEOne provider allows it, or none of them has a claim or region there
NONEAlways; protection is not asked

Providers are asked in order of priority about a grid of points covering the footprint: at least edgeSampling subdivisions per edge, never more than 8 blocks apart, on the floor, the ceiling and the layers in between. GriefPrevention is also asked about every claim whose rectangle touches the footprint, so a claim smaller than the grid cannot slip between two points. uxmClaims claims whole chunks, so every chunk of the footprint is looked up exactly; in a claimed chunk the player needs that claim's block-place permission.

A provider that finds no claim or region anywhere in the box answers "not applicable" rather than "allowed", so in PERMISSIVE mode wilderness on one plugin does not override a claim on another. A provider that fails, for example a plugin version it cannot talk to, counts as a denial: the console says why, and nothing is built on what may be someone's land.

The generic fallback

bukkitEvent covers Lands, Residence, RedProtect, GriefDefender, HuskClaims, BentoBox, SuperiorSkyblock2 and anything else: it fires a fake block-place event at the sample points, in loaded chunks, and reads whether a plugin cancelled it. It is off by default, because other plugins' listeners run too: a logging plugin such as CoreProtect records the probe, an anti-cheat may react.

When the land changes hands

With protection.cancelIfLost: true, every recheckIntervalTicks the site is checked again for its owner. If the owner lost the right to build there, the job is cancelled and refunds the unbuilt share of the price, with no cancel penalty. A plugin listening to the cancel event can change the refund but cannot keep the build going.

The recheck needs the owner online, so the same switch also pauses a build while its owner is offline and resumes it when they return.

Settings

KeyDefaultMeaning
protection.modeSTRICTSTRICT, PERMISSIVE or NONE
protection.recheckIntervalTicks100How often a running build is checked again
protection.edgeSampling4Minimum subdivisions per edge
protection.cancelIfLosttrueCancel on lost land; pause while the owner is offline
protection.bypassPermissionuxmbuilders.bypass.protectionSkips the checks
protection.providers.<id>true, bukkitEvent falsePer-provider switch

Your own plugin can add a provider through the developer API.

Related: Placement rules, Restarts and refunds