Skip to content

Minecraft: How to Set Up Anti-Cheat on Your Server

Learn how to install the free Grim anti-cheat plugin, avoid false positives, and find out what’s possible on Forge and NeoForge servers.

26 November 20265 min read3 Views0 helpful

Don't have your own server yet? Host your Minecraft server with ZAP-Hosting from €4.49 / month.Or try 3 days from €0.81

Introduction

Minecraft itself checks for very few cheats. With hacked clients, players can, for example, fly, run faster, or hit from farther away than the game allows. An anti-cheat detects these violations and reports them to you. In this guide, we’ll show you how to install the free, open-source anti-cheat Grim, how to avoid false positives, and what’s possible on modded servers.

Before you start

You need a Minecraft server with a server type that supports Grim:

Server typeGrim asTab in the web interface
Paper, Purpur, Spigot, FoliaPluginPlugins
FabricModMods
Forge, NeoForgeNot available–
VanillaNot available–

If your server runs Vanilla, change the server type under Games & variants, for example, to Paper. Switching games and managing variants explains how. The Fabric version of Grim is available for Minecraft 1.16.1 to 1.21.x and 26.1.2 to 26.3.

Info

Proxy networks If you use a proxy such as Velocity or BungeeCord, install Grim on the game servers behind it, not on the proxy.

Installing Grim

As a plugin (Paper, Purpur, Spigot, Folia)

  1. Open your game server’s management page and switch to the Plugins tab.
  2. Search for Grim Anticheat in the Plugin Browser and click Install.
  3. If your server is running, confirm the automatic restart by clicking Yes, run automatically.

When it starts for the first time, Grim creates the plugins/GrimAC folder with its configuration files.

As a mod (Fabric)

  1. Switch to the Mods tab.
  2. Search for Grim Anticheat in the Search mods... field, click Install, and select the Version if needed.
  3. If the server is running, confirm by clicking Yes, run automatically.

If you can’t find Grim in the browser, download the file from Modrinth and place it in the plugins or mods folder using the Files tab. See Installing and managing plugins.

How Grim works after installation

  • Grim reports violations but doesn’t punish players. By default, Grim only posts violations in chat and in the log. No one is automatically kicked or banned.
  • Viewing alerts: On plugin servers, players with OP permissions receive alerts automatically. Use /grim alerts to turn them on or off for yourself. Other team members need the grim.alerts permission. See Granting OP permissions on the server to learn how to grant OP permissions.
  • Checking players: /grim profile Steve shows information about the player Steve, such as their client version. Use /grim spectate Steve to watch them as a spectator, and /grim stopspectating to return. Replace Steve with the player’s name each time.
  • Bedrock players: Grim doesn’t check players who join through GeyserMC, to prevent false positives. Learn more about Geyser in Setting up Java-Bedrock crossplay with GeyserMC.

Avoiding false positives

Grim compares every movement with what would be possible in normal Minecraft. That means legitimate players can also trigger alerts:

  • Client mods: Some mods change movement, block placement, or inventory behavior and can trigger alerts—for example, Mouse Tweaks, Inventory Profiles Next, or Vivecraft. The Grim developers maintain a list of known incompatible client mods.
  • Observe first, punish later: Let Grim report violations for a few days and check which checks are triggered for which players before setting up automatic punishments.
  • Exempt individual players: Use the grim.exempt. permission followed by the name of the check—for example, grim.exempt.reach—to disable a specific check for a player. Use grim.disabled to disable Grim entirely. You grant permissions with a permissions plugin.

Setting up punishments

Set up automatic kicks or other commands in the plugins/GrimAC/punishments.yml file, which you can edit in the Files tab. Each check is listed in a group, and under commands you specify what happens and after how many violations. The first number is the threshold; the second is the interval at which the command is run again. Here’s an example from the Grim documentation:

yaml
Punishments:
  BlockCheck2:
    checks:
      - "PositionPlace"
    commands:
      - "1:1 [alert]"
      - "10:10 kick %player% &cStop cheating!"

Here, Grim reports every violation and kicks the player after ten violations. Violations expire after 300 seconds. You can change this for each group with remove-violations-after. Disable a check by removing it from all groups. Apply your changes with /grim reload or by restarting the server. Note that /grim reload resets all violations for players who are currently online.

Anti-cheat on modded servers (Forge and NeoForge)

Plugins don’t run on Forge or NeoForge servers, and Grim isn’t available for them. You can still protect your server:

  • Whitelist: Only allow players you know to join the server. See Enabling and editing the whitelist.
  • Default settings: Keep online-mode=true (only players with a genuine Minecraft account) and allow-flight=false (no flying in survival mode using mods) in server.properties. Both are the default settings. Server config settings explains these options.
  • Grant OP permissions sparingly: Depending on their permission level, players with OP permissions can, for example, kick or ban other players. Only grant them to people you trust.

If you need an anti-cheat plugin, use a server type with plugins, such as Paper, or use Fabric for mods. Then Grim will be available to you.

Also prevent X-ray

To protect against X-ray mods that let players see ores through walls, Paper has its own built-in Anti-Xray feature. Setting up Anti-Xray in Paper shows you how to enable it.

Common issues

A legitimate player keeps getting flagged. Ask them which client mods they use and compare them with the list of incompatible mods. If that doesn’t help, exempt them from the affected check with the appropriate grim.exempt. permission.

I’m not receiving alerts. Check whether you have OP permissions or the grim.alerts permission, and turn on alerts with /grim alerts.

Grim won’t start. Check the Console tab for the error message that appears during startup. Common causes include a Grim version that isn’t compatible with your Minecraft version or a server type that Grim doesn’t support.

Conclusion

You’ve installed Grim on your Minecraft server, learned how to read alerts and avoid false positives, and discovered what’s possible on modded servers. If you have any other questions, our support team is available every day. 🙂

Free tools

Minecraft Tools

View all

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.