Skip to main content
← Blog

August 5, 2026 · The Minely team

How to make a land claims plugin with AI (shovel claims, trust, protection)

Not every server wants the full factions hierarchy. Land claims are the lightweight answer: click two corners with a shovel, the land is yours, and only people you trust can build there. It is grief protection that a five-year-old can understand and a server can explain in one sentence.

What a land claims plugin actually is

A land claims plugin lets players protect rectangular regions with a claim tool. Each claim has an owner, a trust list with levels (build, container, access), and protection rules for blocks, containers, and explosions. Claims are personal — no faction politics required.

How it works under the hood

The claim tool (golden shovel, by tradition) records corner clicks and creates a claim record: world, min/max coordinates, owner, trust map. Protection listeners check every build, break, container, and piston action against claims, allowing only the owner or trusted players with the right level. Explosion and fire-spread protection are separate flags per claim. A claims list GUI shows the player's claims with sizes and locations.

The prompt that builds it

You do not have to write this yourself. A precise description is enough:

a land claims plugin with a shovel claim tool, /trust per player with levels, claim info on click, explosion protection inside claims, and a claims list GUI

Name the commands, the permissions, and the exact messages players see. Precision here is what makes the first build land close.

Building it in the right order

  1. Implement the shovel tool with corner selection and creation.
  2. Build protection listeners with the trust-level check.
  3. Add /trust, /untrust, and the trust levels.
  4. Wire explosion and fire protection flags.
  5. Create the claims list GUI and abandonment rules.

The details that matter in production

In production, the first thing you learn is that the happy path is the easy half. The edges are where the work lives: restarts, protection interactions, full inventories, and players who treat every system like an exploit puzzle. Build for those from day one and the launch weekend is quiet instead of a fire drill.

Storage and cleanup deserve special attention. Write state as it changes rather than on shutdown, clear per-player state on quit and on world change, and make every admin-facing action leave an audit line. The first time something goes wrong, those records are the difference between a two-minute review and an evening of guessing.

Finally, test like a hostile user. Spam-click every GUI, rejoin mid-action, try the command with no permission and with every permission, and run it while the server is under load. The bugs that survive that pass are the ones worth shipping.

Tuning it after the first build

Give new players a small claim allowance (a few thousand blocks) that grows with playtime — it limits early grief while rewarding regulars. Trust levels of access (doors), container (chests), and build (everything) cover every real case without complexity.

Tips that save you a rebuild

  • Check piston and block-gravity actions as well as direct builds; they are the classic bypass.
  • Show claim borders with a stick-inspect effect; invisible borders cause daily disputes.
  • Expire claims after long owner inactivity, with a warning first.
  • Log every trust change; claim betrayals are a support-ticket staple.

Questions people ask

Can claims be resized?

Yes — click a corner with the shovel to drag it, with the allowance checked against the new size.

What about sub-claims?

Nested claims inside a parent with their own trust list, for towns and shared bases.

How do admins handle disputes?

An admin-override permission plus a claims browser; the audit log does the rest.

Try the prompt above on a fresh project. You will see the plan, the code streaming in, and the repair loop finish the job — then a jar to download.