Anti-AFK Farming
AFK farming is one of the oldest tricks in the book. A player parks their character on a single block, sets up a macro or a simple weight on the mouse button, and walks away while crops break over and over. Hours later they return to a chest full of wheat, carrots, or whatever else grows on your server. Meanwhile, honest players who actually play the game fall behind. Anti-AFK Farming is a lightweight server-side add-on that watches for this exact behavior and puts the information in front of your staff team.
What Anti-AFK Farming Does
This add-on monitors repeated crop breaks in a small area. When a player breaks the same type of block over and over while barely moving, the plugin counts those actions inside a configurable time window. Once the count crosses your threshold, it fires an alert to staff. By default, the alert does not cancel the block break. That design choice matters: you get a heads-up without interfering with legitimate players who happen to farm efficiently in a tight space.
The plugin is intentionally tunable. Every server has a different definition of suspicious behavior, so Anti-AFK Farming for Minecraft gives you the dials instead of hard-coding a single rule set.
Commands and Permissions
Setup is minimal. The command surface is small on purpose.
- /antiafk reload reloads the configuration file. Requires the antiafk.admin permission. Tab completion suggests reload for admins.
- antiafk.alerts grants a player or group the ability to receive alert messages.
- antiafk.bypass excludes a player from all checks. Useful for test accounts, builders, or trusted staff.
If you run a large network, hand out antiafk.alerts to your moderator rank rather than everyone. Alert spam is real, and a focused staff channel works better than broadcasting to the whole team.
Configuration Options
Everything lives in config.yml. The main values you will want to adjust are:
- stationary-block-radius controls how tight the monitored area is around the player.
- repeat-threshold sets how many breaks trigger an alert.
- window-seconds defines the time frame those breaks must occur within.
- tracked-blocks lists which block types count toward the check.
- cancel-triggering-break decides whether the break that crosses the threshold is cancelled. Set it to true if you want an automatic response instead of a notification.
- alert format lets you customize the message staff receive, including player name and location.
After editing, run /antiafk reload to apply changes without restarting the server. Tuning takes a few passes. Start with a generous threshold, watch your alerts for a week, then tighten it.
Supported Versions and Installation
Compatibility
Anti-AFK Farming is built for modern Minecraft releases and runs on the Spigot and Paper server loaders. It targets the 1.20.x and 1.21.x branches, so servers on those versions can drop it in without extra work. Paper is recommended if you want the best performance under load.
How to Install
The process takes about two minutes.
- Download Anti-AFK Farming as a jar file from the source you trust.
- Stop your server, or prepare to restart it.
- Place the jar in your plugins folder.
- Start the server so the plugin generates its default config.
- Edit config.yml to match your server's farming rules.
- Run /antiafk reload and confirm the settings loaded.
If you prefer a simpler route, the foxygame.net launcher handles Anti-AFK Farming installation in a single click, pulling the correct build for your server version straight from its add-on catalog. That removes the guesswork of matching jars to Minecraft releases.
Why It Matters for Your Server
AFK farming quietly erodes server economies. When a handful of players automate resource gathering, prices crash, shops become pointless, and the players who grind legitimately feel cheated. Anti-AFK Farming does not ban anyone automatically, and that is a feature, not a limitation. It gives staff the evidence they need to make a fair call, whether that means a warning, a temporary restriction, or a conversation.
The tunable threshold system also means you can adapt the plugin as your server changes. A survival world with tight farms needs different numbers than a skyblock server with automated cactus towers. Adjust the radius, window, and threshold until the alerts match reality.
Final Thoughts
Anti-AFK Farming is a focused tool that solves a specific problem without bloating your plugin list. It watches, it reports, and it stays out of the way until you decide otherwise. Install it, tune the config to fit your community, and let your staff handle the rest. Your economy, and your honest players, will thank you.