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

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=trueAfter 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 listIf 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 NomeDoAmigoLayer 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 moderadorGolden 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
/abandonclaimWorldGuard, 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 NomeDoAmigoThe 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 versionInvestigating 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:20The 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:30If 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:30dAlways 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:
- 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.
- Evidence before punishment. Use
/co lookupto confirm who did it. Punishment based on "I think it was him" destroys the community's trust faster than griefing. - Revert before punishing. Undo the damage first; then decide between a warning, mute or ban.
- Case record. Write down the name, date, time and what was done. On a big server this becomes a history and avoids arguments.
- 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=trueand 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
- Minecraft 26.4 Snapshot 8
- PaperMC releases Build 181 for stable version 26.3
- CoreProtect rollback guide: lookup, restore and purge
- Minecraft server commands: console, whitelist and gamerules
- Essential plugins for a Minecraft server in 2026 (Paper 26.3)
- How to Protect Your Minecraft Server from Griefers and Attacks
More posts
How to import a world to the Minecraft serverStep by step to move the single-player world (or another host's) to the server: correct folders, level-name, 26.1 changes and common mistakes.
How to install plugins on a Minecraft server (Paper)Step-by-step guide to installing plugins on your Paper server: where to download them, how to check whether they loaded, which ones are worth getting first, and how to fix the most common errors.
How to configure a Minecraft server: administration guideserver.properties, whitelist, operators, gamerules, backups and version switching: the practical guide to administering your Minecraft server without breaking the world.
Building and survival games to play with friendsSeven building and survival games to play with friends: what each one does best, how many players they support, and how to keep the world online without depending on the host.