Mine Hour logo

How to protect your Minecraft server from griefers

Whitelist, permissions, land protection, CoreProtect and backups: the step-by-step guide to secure your server and undo damage in minutes.

· 5 min read

a computer generated image of a cube surrounded by smaller cubes

How to protect your Minecraft server from griefers

You spend the weekend building a base with your friends. On Monday, someone joins, blows a TNT hole in the middle of the build and leaves with everything from the chests. Anyone who's been through this knows: griefing isn't just annoying, it's the kind of thing that empties a server.

The good news is that almost all the protection you need is free and comes from well-known plugins. In this guide, the plan is to build three layers: control who gets in, control what each person can do and make sure you can undo the damage. If all three are in place, the cost of an attack drops from "I lost the world" to "I fixed it in two minutes".

The walkthrough below assumes a Java server on Paper — Paper marked version 26.3 as stable in October 2026 and has released fix builds since then. It's worth checking the official PaperMC site for the latest build before installing any plugin.

Layer 1: who joins the server

Keep online-mode enabled

This is the most important setting in server.properties and many people turn it off without need. With it active, the server checks whether the person has an official Mojang/Microsoft account — and that's what stops someone from joining under another player's nick to cause trouble.

online-mode=true
enforce-whitelist=true
white-list=true

After editing, restart the server for the changes to take effect.

Use a real whitelist

A whitelist isn't bureaucracy: it's what turns a "public server" into "the crew's server". In the console (no slash) or in chat as an operator (with slash):

whitelist on
whitelist add NomeDoAmigo
whitelist remove NomeDoAmigo
whitelist list

If the server runs 26.3 or newer, it's worth opening server.properties and confirming how the list is configured — in some installations it comes enabled by default, and then a friend's first login may fail with no explanation.

Operator is a role of trust, not of friendship

Each OP has the power to break the entire server. Keep at most two or three people with OP, and always prefer giving staff roles via a permissions plugin instead of /op. To grant and revoke:

op NomeDoAmigo
deop NomeDoAmigo

Layer 2: what each player can do

This is where LuckPerms comes in, which is practically standard on Paper servers. The logic is simple: you create groups (player, moderator, admin) and allow specific commands for each one. That way the moderator can use CoreProtect without gaining access to /stop or /ban.

lp creategroup moderador
lp group moderador permission set coreprotect.inspect true
lp group moderador permission set coreprotect.lookup true
lp group moderador permission set coreprotect.rollback true
lp user NomeDoAmigo parent add moderador

Golden rule for protection plugins: never give * to anyone. The wildcard node allows everything, including things that shouldn't exist in a moderator's hands.

Protect the land with GriefPrevention or WorldGuard

Permissions are half the way; the other half is limiting where each person can build. GriefPrevention works with claims made with a golden shovel: the player marks the area, the plugin records the owner, and no one else touches it without permission.

/claim
/trust NomeDoAmigo
/containertrust NomeDoAmigo
/accesstrust NomeDoAmigo
/abandonclaim

WorldGuard, on the other hand, is better suited for administrative areas, such as spawn and shops, defined by the staff:

//wand
/rg claim spawn
/rg addmember spawn NomeDoAmigo

The most common combo is to use both: WorldGuard in the server's fixed regions and GriefPrevention in the players' areas.

Layer 3: undoing the damage is what saves the day

No protection is 100%. Someone will set fire, will pour lava on a chest, will break a wall "as a joke". That's where CoreProtect comes in, logging blocks placed and broken, chests opened, items taken and chat messages.

Install it through the plugins folder (or your host's manager) and restart the server. To confirm it's running:

/co version

Investigating with the inspector

Type /co inspect (or /co i) and right-click the damaged block. The plugin shows who placed it, who broke it and when. Great for checking a specific wall without having to search the whole world.

Looking up a player's history

/co lookup u:NomeSuspeito t:7d r:20

The t: filter limits the period (7 days, in the example) and r: limits the radius in blocks from where you are.

Reverting the damage — with a preview

This is the step many people skip and later regret. Run the rollback in preview mode, see what would be changed, and only then run it without #preview:

/co rollback u:NomeSuspeito t:2h r:30 #preview
/co rollback u:NomeSuspeito t:2h r:30

If the result didn't turn out as you expected, the same command with /co restore restores the previous state.

Keep the database under control

CoreProtect stores everything in SQLite by default. On a server with many players, this grows fast, so schedule a periodic cleanup of the oldest records:

/co purge t:30d

Always have a backup you know how to restore

A backup nobody tested isn't a backup. The ideal is to have a daily automatic copy and to know how to restore it in two clicks — without having to convince anyone to rebuild. Hosting billed by the hour, like Mine Hour, does automatic world backups and gives you a free subdomain, which solves both the snapshot part and keeping a memorable address for the crew.

Moderation in practice: clear rules and quick response

No tool replaces an agreement. A server with written rules and present staff has fewer problems than any badly configured anticheat. A flow that works:

  1. Short, visible rules. Written at the spawn entrance, in the community's announcements channel and on the server site. Five lines are better than a wall of text nobody reads.
  2. Evidence before punishment. Use /co lookup to confirm who did it. Punishment based on "I think it was him" destroys the community's trust faster than griefing.
  3. Revert before punishing. Undo the damage first; then decide between a warning, mute or ban.
  4. Case record. Write down the name, date, time and what was done. On a big server this becomes a history and avoids arguments.
  5. A second chance when it makes sense. A player who accidentally broke a wall is not the same case as someone who opened other people's chests.

An anticheat like Grim can complement the package, but treat it as an extra: it helps against flight, hitbox and impossible speed, not against someone who breaks blocks by hand.

Checklist to run today

  • online-mode=true and active whitelist
  • At most three OPs, all trusted
  • LuckPerms with separate groups for player, moderator and admin
  • GriefPrevention or WorldGuard protecting spawn and player areas
  • CoreProtect installed, with permission only for staff
  • Automatic backup enabled and tested once
  • Rules published and a permanent channel for reports

Setting this up takes an afternoon. The result is a server that survives the friend who "just wanted to test" the diamond pickaxe on your house.

Sources