AntiAFK - The Performance AFK Solution icon

AntiAFK - The Performance AFK Solution -----

AntiAFK is a next-gen AFK management tool. With behavior analysis, macro detection, and Captcha test



[​IMG]
AntiAFK
Forget standard AFK blockers, meet AntiAFK's Intuitive Analysis.

[​IMG] [​IMG] [​IMG] [​IMG]

VIRUSTOTAL
The plugin is completely open source and safe. Scan results for the curious:
AntiAFK-Core-1.0.3-RELEASE.jar
AntiAFK-Geyser-1.0.3-RELEASE.jar

What is AntiAFK?

On Minecraft servers, classic "AFK Pools", "Macros", and "Anti-AFK Bots" constantly impact the server economy negatively. Standard plugins only check if a player's coordinates have changed. That's why even a simple water flow can fool them.

AntiAFK asks this question: "Does this movement belong to a human, or a bot?"

AntiAFK is a next-generation management tool designed for modern Minecraft servers. Its primary goal is not only to detect AFK players but also to proactively prevent the most complex bots and attempts to exploit AFK detection.

Behavioral Analysis System
AntiAFK tracks players' movement trails (trajectories) in the background without straining the server. If a player follows a route that is flawlessly consistent or constantly repeating in a way that defies human nature, the system intervenes.

[​IMG]
Live analysis showing how the system analyzes the player's trajectory and detects repetitive bot movement.

[​IMG]
Bots cannot escape even on complex routes. Vector analysis tracks the path regardless of speed.

Key Features & Highlights
Pointless Activity Detection
Constantly jumping, sneaking, opening/closing inventory, or clicking the air while staying in the same block does not count as "Activity" to reset the timer. AntiAFK counts and blocks these actions.

[​IMG]

Native Geyser (Bedrock) Support
Bedrock players are not forced into difficult Java GUIs. A specialized verification system using Touch Forms is provided for phone/tablet screens. Auto-clicker protection is specifically optimized for mobile players.​


Optimized Performance
Not just a claim, but proven optimization. AntiAFK is designed with industry-standard principles to minimize server impact.
  • Asynchronous Operations: Potentially slow operations like behavioral analysis, pattern recognition (DTW), and all database transactions run entirely off the main thread.
  • Smart Caching (Caffeine): Frequently accessed data (WorldGuard regions, player stats) is held in high-efficiency caches to reduce DB and API calls.
  • Distributed Load: Periodic tasks spread their operations evenly across 20 ticks within a second, preventing performance spikes even with high player counts.
Test Environment: Paper 1.19.4, Standard Server Load​
// Server's overall idle rate (higher is better)
Server thread: 100.00%
└── net.minecraft.server.MinecraftServer.waitUntilNextTick(): 85.37%

// Plugin's total impact on the main thread
AntiAFK (v1.0.3)
└── Server thread: 0.24%
├── com.bentahsin.antiafk.tasks.AFKCheckTask.run(): 0.18%
├── com.bentahsin.antiafk.listeners.handlers.PlayerMovementListener.onPlayerMove(): 0.04%
└── Other (Commands, GUI, Captcha): 0.02%


RESULT: The total impact of all plugin components on the main thread is only ~0.24%. This is statistically negligible, confirming it won't impact TPS even on the busiest servers.

Verification (Captcha) & Management
Suspicious players are challenged with GUI-based (Color finding) or Chat-based tests. You can control all settings and players via the in-game management panel.

[​IMG]


"Learning Mode": Intelligent Pattern Recognition
Leveraging machine learning principles, Learning Mode detects and counteracts sophisticated AFK bots. A highly optimized, asynchronous task continuously compares the recent movements of all online players against a library of known bot patterns using the Dynamic Time Warping (DTW) algorithm.​
  • Comprehensive Pattern Management: A command suite, /antiafk pattern, gives you full control to record, list, and manage bot patterns.
  • Dual Serialization: Patterns can be saved in JSON (debug) or highly efficient binary Kryo format.
⚙️ Configuration & Management
  • Graduated Penalty System: Warn on the first offense, kick on the second, temp-ban on the third. All history is stored in SQLite.
  • WorldGuard Integration: Define different rules for specific areas (e.g., 3 mins AFK limit in "PVP Arena", 15 mins in "Lobby").
  • Macro Detection: Analyzes inhuman clicking speeds and rhythms.
  • Robust Config Structure: Thanks to a custom configuration dependency developed for this project; settings are preserved between updates, plugin crashes due to invalid values are prevented, and auto-backups are handled.
Full Internationalization (i18n)
AntiAFK speaks your language!
Supported Languages: Turkish, English, Spanish, German, French, Russian, and Polish.

Download & Installation

AntiAFK is completely Open Source and free.

[​IMG] [​IMG]

Installation:
1. Drop the AntiAFK-Core.jar file into your plugins folder.
2. (Optional) If you use Geyser, drop the AntiAFK-Geyser.jar module as well.
3. Start the server!

If you encounter any issues, please use the GitHub Issues page.
Resource Information
Author:
----------
Total Downloads: 7
First Release: Dec 28, 2025
Last Update: Dec 28, 2025
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings