How to stop griefers on your Minecraft server

By kimolo · 8 November 2026

An old padlock on the red wooden door of a storehouse
Photo: Estormiz, CC0, via Wikimedia Commons

Most griefing isn't clever. Someone finds your server, walks in, and starts breaking things, or a friend of a friend gets op and has a bad night. You can block nearly all of it with a few settings, and fix the rest with logs and backups.

Turn on the whitelist

The whitelist is the single biggest thing you can do. If only named players can join, strangers can't grief you.

Since 26.3, new servers start with the whitelist on by default. If your server was made on an older version and updated, it keeps whatever setting it had, so check server.properties:

white-list=true
enforce-whitelist=true

enforce-whitelist kicks anyone who is online but no longer on the list when the whitelist is reloaded. Without it, removing someone doesn't kick them.

The commands, run from the console or as an op:

/whitelist on
/whitelist add PlayerName
/whitelist remove PlayerName
/whitelist list
/whitelist reload

The player doesn't need to be online to be added or removed. Use reload if you edited whitelist.json by hand. Ops can always join, even when they aren't on the list.

Keep online-mode on

online-mode=true

This makes the server check every player against Mojang's account servers. With it off, anyone can join under any name, including yours. If you're an op, that means they get your op too, and the whitelist can't stop them because it checks names they can fake.

The one normal exception is a Paper server behind a Velocity proxy. There the backend runs with online-mode off and the proxy does the checking, which only stays safe if you've set up forwarding properly and the backend's port isn't reachable from the internet.

Be stingy with op

/op hands out a lot of power. Java has permission levels from 0 to 4, and each one includes everything below it:

  • Level 1: can build inside spawn protection.
  • Level 2: most cheat commands, game mode, /give, command blocks.
  • Level 3: player management like /kick, /ban, /whitelist and /op.
  • Level 4: everything, including /stop and /save-all.

op-permission-level in server.properties sets the level /op gives. It defaults to 4, the full owner level. That matters because a level 3 op can use /op too, and with the default they'd be handing out level 4. Lowering op-permission-level closes that gap. You can also set any one op's level by editing their entry in ops.json and restarting.

My rule is that only the owner is level 4, and anyone else gets op for a reason and loses it with /deop PlayerName when the reason is over.

Use LuckPerms for anything finer

Op levels are blunt. For real roles (builder, moderator, admin) use LuckPerms. It runs on Paper, Fabric and NeoForge, and it's listed for 26.3. You make groups, give each group the permissions it needs, and put players in groups:

/lp creategroup moderator
/lp user PlayerName parent add moderator
/lp editor

/lp editor gives you a link to a web editor, which is much easier than typing permission nodes by hand. Your claim and logging plugins check these permissions too, so you can let moderators use rollback tools without giving them op.

Land claims and protection

On a public or semi-public survival server, let players protect their own builds. What you can use depends on your loader. Paper runs plugins, Fabric and NeoForge run mods. I cover the difference in Fabric vs NeoForge vs Paper.

Paper

  • GriefPrevention. Players claim land with a golden shovel, and new players get a claim around their first chest automatically. Claims block building, container theft and TNT damage. Claim blocks build up with time played, so a brand new account can't lock off half the map. Players manage access with /trust, /containertrust, /accesstrust and /untrust. It's listed for 26.3.
  • WorldGuard. Admin-drawn regions with flags, for spawn, shops and event areas rather than player bases. It needs WorldEdit installed too. Also listed for 26.3.

Fabric and NeoForge

  • Open Parties and Claims. Chunk claims and parties, on Fabric, NeoForge and Forge, with builds up to 26.3. It runs on the server. Players who install it on their client get a menu (the apostrophe key by default), and everyone else can use chat commands: /oclaims for claims and /oparties for parties. If you use Xaero's World Map, claims show up on the map.

Logging and rollbacks

Claims stop most grief. Logging is how you clean up what got through, without restoring the whole world.

CoreProtect (Paper)

CoreProtect records block changes, container use and more. To see who changed a block, toggle the inspector and click it:

/co inspect

To undo one player's last hour across the whole server, preview it first, then run it:

/co rollback u:PlayerName t:1h r:#global #preview
/co rollback u:PlayerName t:1h r:#global

Without r:, a rollback only covers 10 blocks around you, which catches people out. If you got it wrong, /co restore with the same parameters puts it back. Check it supports your version before you update the server: when I checked, the Modrinth listing went up to 26.2.

Ledger (Fabric)

Ledger does the same job on Fabric. It's server-side only and needs Fabric API and Fabric Language Kotlin. Builds go up to 26.3.

/ledger inspect
/ledger preview rollback source:PlayerName after:1h range:@global
/ledger preview apply

preview cancel throws the preview away, and /ledger rollback with the same parameters skips the preview. Ledger is Fabric (and Quilt) only, so on NeoForge, backups are your main way back.

Spawn protection

spawn-protection=16

Non-ops can't place or break blocks within this many blocks of world spawn. The protected area is a square with sides of 2x+1, so 16 covers 33 by 33. Setting it to 0 turns it off. One catch: it only works when at least one op exists, so if your ops list is empty, spawn isn't protected. For anything bigger than a spawn platform, use WorldGuard or a claim instead.

Keep the address private

Bots constantly scan the internet for Minecraft servers. People who've built scanners have written about checking every port, not just the default 25565, so moving to a different port won't hide you for long. Assume your server will be found, and let the whitelist do the work.

Don't post the IP in public places. Share it in a private Discord channel for members only, and if it does leak, the whitelist means the leak doesn't matter.

Backups are the real safety net

Everything above can fail. A trusted player can turn on you, a plugin can miss something, or you can mistype a rollback. A backup you can restore covers all of it.

  • How often: at least daily on an active server, and always before updating Minecraft, a plugin or a mod. Grief often goes unnoticed for a day or two, so one backup isn't enough.
  • Keep several: keep a run of daily backups plus a few older ones, so you can go back to before the damage started.
  • Keep one off the machine: a copy on the same disk dies with the disk or with whoever got into the box.
  • Back up safely: if you copy files while the server is running, stop it saving first:
/save-off
/save-all flush

Copy the world folder (and your plugin or mod configs), then run /save-on.

  • Test a restore: a backup you've never restored is a guess. Every so often, copy one into a separate test server, start it, and walk around.

First 10 minutes checklist

  1. Set white-list=true and enforce-whitelist=true, then add your players.
  2. Check online-mode=true.
  3. Op only yourself. Lower op-permission-level, or edit levels in ops.json, for anyone else.
  4. Install LuckPerms and make a moderator group.
  5. Add a claims plugin or mod: GriefPrevention on Paper, Open Parties and Claims on Fabric or NeoForge.
  6. Add logging: CoreProtect on Paper, Ledger on Fabric.
  7. Share the address privately, not in public posts.
  8. Set up daily backups, keep several, and test one restore.

If the server's also running slowly, why your Minecraft server lags covers that side.

Need a hand?

I set up and run Minecraft servers with this stuff in place from the start. If you're stuck on one part, message me on Discord.

← All notes