Mine Hour logo

How to protect your Minecraft server from griefing

Griefing, OP handed out to just anyone and a lack of backups destroy the world in minutes. See how to set up whitelist, LuckPerms, CoreProtect and land protection on your server.

· 5 min read

A person on a rocky cliff edge overlooking mountains at golden hour

How to protect your Minecraft server from griefing

You join the server on a Saturday morning and find the spawn base with no floor, the chests empty and a sign reading "thanks for the diamonds". It has happened to almost everyone who opened their world to friends — and then to friends of friends.

The good part: almost every serious griefing incident comes from a lazy configuration, not from a brilliant hacker. Whitelist off, OP handed to whoever asked, no block logs and no backup. With half an hour of adjustment you avoid 90% of the sad stories. This guide is the step-by-step of what to install and configure before publicizing the server address.

1. Close the door before inviting people

The first step isn't even a plugin: it's server.properties. These lines solve more than many people imagine.

online-mode=true
white-list=true
enforce-whitelist=true
enable-command-block=false
spawn-protection=16
max-players=10
view-distance=8
  • online-mode=true makes the server validate the account with Mojang. With false ("cracked" mode), anyone can join using someone else's username — including yours.
  • white-list=true only allows those on the list. Allow with /whitelist add NomeDoJogador, enable with /whitelist on and check with /whitelist list.
  • enforce-whitelist=true kicks anyone who is online at the moment the list is enabled.
  • spawn-protection prevents strangers from breaking blocks in the spawn area, even without any role.

After editing, restart the server — reloading the file mid-game usually doesn't apply everything.

2. OP is the master key: stop handing it out

The classic mistake is giving /op to the friend who "just wants to help". OP in vanilla Minecraft is full permission: they can ban you, change the game mode and fill the world with TNT.

The way out is to separate roles by permission, and the market standard for this is LuckPerms (works on Paper and Purpur). With it you create groups and grant only what each one needs:

/lp creategroup moderador
/lp group moderador permission set minecraft.command.kick true
/lp group moderador permission set minecraft.command.ban true
/lp group moderador permission set minecraft.command.mute true
/lp user NomeDoJogador parent add moderador
/lp group moderador info

A moderator like this can kick and ban, but cannot give themselves diamonds or switch to creative. Leave /op reserved for the server owner and, preferably, with op-permission-level in the server.properties default. If you want to see exactly what each command requires, /lp verbose on shows the tested permissions in chat in real time.

3. CoreProtect: the undo button

If you install a single protection plugin, install CoreProtect. It logs every block placed and broken, every chest opened and every death, with author and time. Without it, you know that griefing happened, but not who did it.

After installing and restarting the server:

  1. Get the default stick with /co i (or /co inspect) and click any block to see the history.
  2. Investigate the damage with /co lookup before reverting anything.
  3. Revert only what the player did, within the radius and period you choose.
/co lookup u:NomeDoJogador t:2h r:50
/co rollback u:NomeDoJogador t:2h r:50
/co restore u:NomeDoJogador t:2h r:50

The u: filters by player, t: by time and r: by radius in blocks. The /co restore undoes the rollback, in case you overdid it. Also make it a habit to run /co purge from time to time so the database doesn't grow uncontrolled — and read the documentation first, because this cleanup is definitive.

4. Protect the terrain, not just the logs

A log is a detective; area protection is a doorman. For survival worlds with friends, GriefPrevention solves it with a golden pickaxe: hit the ground with it to create your land and right-click to expand it.

/claim
/trust NomeDoJogador
/containertrust NomeDoJogador
/accesstrust NomeDoJogador
/unclaim

/trust allows building and breaking, /containertrust allows chests and furnaces, /accesstrust allows doors and buttons. It's a trust ladder that avoids the "I trusted everyone at once".

For spawn and public areas, the WorldEdit + WorldGuard combo creates regions with their own rules:

//wand
//pos1
//pos2
/rg define spawn
/rg flag spawn pvp deny
/rg flag spawn build deny
/rg flag spawn tnt deny

5. Moderation commands every owner needs at hand

Vanilla already brings the basics:

/kick NomeDoJogador Motivo
/ban NomeDoJogador Motivo
/ban-ip NomeDoJogador
/pardon NomeDoJogador

Temporary ban and mute don't exist in vanilla — for that you need a punishment plugin (EssentialsX, LiteBans and similar). Before banning, take a screenshot of the conversation and of the /co lookup: that ends any discussion in the group later.

6. Backup isn't optional, it's insurance

Griefing is bad; griefing without a backup is irreversible. Have at least two layers: a world backup before any version update and automatic backups running while the server is online.

If you want to simplify this part, Mine Hour is a Brazilian hosting provider that already keeps automatic world backups and pauses the server when the last player leaves — which helps those who only turn on the world on weekends. The important thing is never to depend on a single copy stored in a local folder.

Quick checklist before publicizing the server

  • online-mode=true and whitelist enabled
  • Only one or two accounts with OP
  • Groups and permissions configured in LuckPerms
  • CoreProtect installed and tested with /co i
  • Claims or regions protecting spawn and bases
  • Automatic backup confirmed (and a restore test done)
  • Rules written and visible — in the entry chat and on the community Discord

That last item matters more than it seems: most problems start with people who didn't know what was forbidden. If your group organizes on Discord, the rules and moderation there help, but the damage usually happens inside the game — that's where the configuration needs to be solid.

Conclusion

Protecting a Minecraft server isn't about distrusting your friends, but about having a way to roll back when something goes wrong. Whitelist, separate permissions, block logs, claims, and backups solve the vast majority of cases — and they're all free. Set up this foundation before opening the address to the internet; once the world grows, every change becomes more annoying to apply. And if you're just starting out, you can set up the server in a few minutes on Mine Hour, install CoreProtect and LuckPerms, and only then invite everyone.

Sources