Minecraft

How to Protect Builds on a Minecraft Server

Players claim their own land with a golden shovel, or you lock key areas with regions. Here is how to set up both, plus the vanilla settings that help.

TheGameHosting Team 5 min read
Protect Your Builds in Minecraft
Background: Minecraft © Mojang Studios

To protect builds on a Minecraft server, install a protection plugin on Paper or Purpur: GriefPrevention lets each player claim their own land with a golden shovel, and WorldGuard lets you lock areas like spawn with regions. Pair either one with a whitelist and regular backups and griefing stops being a worry.

Vanilla Minecraft only has one built-in protection setting, so plugins do the heavy lifting. This guide covers which plugin fits your server, how to set each one up and the commands your players will use every day.

Your options to protect builds on a Minecraft server

ToolWho protectsBest for
spawn-protection (vanilla)The server, around spawn onlyA small protected spawn square
GriefPreventionEach player claims their own landSurvival worlds and SMPs
WorldGuard (needs WorldEdit)Admins define regionsSpawn, shops, arenas, event areas
WhitelistAdmins choose who can joinPrivate servers for friends
BackupsAdminsUndoing damage that already happened

Most friend groups and SMPs are well served by GriefPrevention alone, because players handle their own claims and admins rarely step in. Servers with a designed spawn, shops or minigame areas usually add WorldGuard for those spots. Both are Bukkit plugins, so they run on Paper, Purpur and Spigot, not on Fabric or Forge.

The vanilla setting: spawn-protection

In server.properties, spawn-protection sets a square around the world spawn where regular players cannot place or break blocks. According to the Minecraft Wiki the default is 16, the side of the square is 2×value+1 (33 blocks with the default), 0 turns it off, and it is disabled automatically when the server has no operators. It only covers spawn, so it is a start, not a solution.

server.properties
spawn-protection=16

Set up GriefPrevention land claims

GriefPrevention is the low-maintenance option. Its documentation lists what a claim blocks: building and breaking, opening containers, using buttons and levers, sleeping in beds, piston pushes, TNT and creeper damage, stealing water and luring animals away. New players even get an automatic claim around their first chest, so they are protected before they learn how claiming works. Claim size grows with time played, which keeps people from claiming the whole map on day one.

  1. Make sure your server runs Paper or Purpur. On TheGameHosting you can switch from the Version tab.
  2. Install GriefPrevention from the Plugins tab, or download GriefPrevention.jar from its official GitHub releases and upload it to the plugins folder in Files.
  3. Restart the server from the Console tab so the plugin loads and creates its config.
  4. In game, hold a golden shovel and right-click two opposite corners of the area you want to claim.
  5. Give friends access with /trust Name (build), /containertrust Name (chests and animals) or /accesstrust Name (doors, buttons and beds).
  6. Check who has access with /trustlist while standing in the claim.
In-game chat
/trust Steve
/containertrust Alex
/accesstrust Notch
/trustlist
/untrust Steve

Other commands worth knowing: /abandonclaim deletes the claim you are standing in, /claimslist shows your claims and remaining claim blocks, and /subdivideclaims lets a town owner split a big claim into plots. For admins, /adminclaims switches the shovel to make server-owned claims, and /deleteclaim removes a claim you are standing in even if it belongs to someone else.

Lock spawn and shared areas with WorldGuard

WorldGuard protects areas you, the admin, define. It needs WorldEdit to select the area, so install both. A new region blocks building for everyone who is not a member or owner, and you can fine-tune it with flags such as pvp or build.

  1. Install WorldEdit and WorldGuard (from the Plugins tab or as jars in plugins) and restart.
  2. In game, type //wand to get the selection tool, a wooden axe by default.
  3. Left-click one corner of the area and right-click the opposite corner.
  4. Type //expand vert so the selection goes from bedrock to the sky.
  5. Create the region with /rg define spawn.
  6. Add builders with /rg addmember spawn Name and set rules like /rg flag spawn pvp deny.
In-game chat
//wand
//expand vert
/rg define spawn
/rg addmember spawn Steve
/rg flag spawn pvp deny

If WorldEdit is new to you, our guide on installing WorldEdit on a server covers the wand and the basic commands.

Extra layers that stop griefing

  • Whitelist. The simplest anti-grief tool is not letting strangers in. See how to set up a Minecraft server whitelist.
  • Online mode. With online-mode=true nobody can join using your name, which is the easiest way to bypass every plugin above.
  • Few operators. OPs bypass most protections. Give OP to people you trust, not to everyone who asks.
  • Creepers and endermen. GriefPrevention stops explosions inside claims; for the rest of the world the mobGriefing game rule is covered in how to disable mob griefing.
  • Backups. If something gets destroyed before you set protection up, a backup is the way back.

Protect your server on TheGameHosting

With TheGameHosting the whole setup happens in the panel: switch to Paper or Purpur in Version, add GriefPrevention, WorldEdit or WorldGuard from Plugins, edit server.properties in Files and create restore points in Backups before big changes. Users lets you add trusted moderators to the panel with only the permissions they need, so you do not hand out your password. Your server is ready about 60 seconds after payment and runs 24/7 without your PC.

Servers run on AMD Ryzen 9950X and 7950X3D processors with DDR5 memory and NVMe storage, with DDoS protection included and locations in Dallas and Amsterdam. Plans start at $1.90 a month for 2 GB, with unlimited slots and no setup fee, and support answers 24/7 by chat and tickets. Have a look at our Minecraft server hosting or go straight to plans and pricing, and use the code FULL2026 for 15% off for life.

FAQ

What is the best anti-grief plugin for a Minecraft server?

On survival worlds where players build their own bases, GriefPrevention is the easiest because players claim their own land. For admin-defined areas like spawn or shops, WorldGuard is the usual choice. Many servers use both.

Does GriefPrevention work on Fabric or Forge?

No. GriefPrevention is a Bukkit plugin, so it runs on Paper, Purpur, Spigot and CraftBukkit. Modded servers need a protection mod made for that loader.

Why can operators still break blocks in protected areas?

Operators bypass vanilla spawn protection, and many plugins give OPs bypass permissions. Test protection with a regular account, not an OP account.

Can I protect builds without plugins?

Only partly. Vanilla has spawn-protection for the spawn area and the whitelist to control who joins. Anything beyond spawn needs a plugin like GriefPrevention or WorldGuard.

Hosting for these games

Written by TheGameHosting Team, the people who run our servers in Dallas and Amsterdam and answer your tickets.

All posts