AntiAFK - The Performance AFK Solution
v1.0.5-b1AntiAFK is a next-gen AFK management tool. With behavior analysis, macro detection, and Captcha tests, it blocks the most complex bots and exploits. Its high-performance design provides fair protectio
v1.0.5-b1latestAntiAFK v1.0.5-b1Jul 15, 2026 v1.0.4-b5AntiAFK v1.0.4-b5Feb 11, 2026 - no changesv1.0.4-b4AntiAFK v1.0.4-b4Jan 3, 2026 - no changesv1.0.4-b3AntiAFK v1.0.4-b3Dec 24, 2025 v1.0.4-b2AntiAFK v1.0.4-b2Dec 24, 2025
- feat: add StressCommand for simulating player load and enhance Learni… - PR: #14Uncategorized
v1.0.4AntiAFK v1.0.4Dec 22, 2025 - no changesv1.0.3-b4AntiAFK v1.0.3-b4Dec 19, 2025 - no changesv1.0.3-b3AntiAFK v1.0.3-b3Dec 18, 2025 - no changesv1.0.3-b2AntiAFK v1.0.3-b2Dec 17, 2025
- refactor: Modularize AFK management - PR: #4 - feature/benthpapimanager - PR: #5 - refactor/di - PR: #6 - bugfix/loggerprovider - PR: #7 - refactor: Simplify GUIFactory interface by removing unused imports and redundant line breaks - PR: #8 - feature/api - PR: #9 - Feature/bentahsin configuration depend - PR: #11Uncategorized
v1.0.3AntiAFK v1.0.3Dec 17, 2025
- refactor: Modularize AFK management - PR: #4 - feature/benthpapimanager - PR: #5 - refactor/di - PR: #6 - bugfix/loggerprovider - PR: #7 - refactor: Simplify GUIFactory interface by removing unused imports and redundant line breaks - PR: #8 - feature/api - PR: #9 - Feature/bentahsin configuration depend - PR: #11Uncategorized
1.0.2-b9Nov 10, 2025 AntiAFK 1.0.2-b9 - Discord Integration Update!
This update introduces a highly requested feature: Discord Webhook Integration. You can now receive instant notifications in your Discord server for important actions taken by the plugin, such as kicking or banning a player for AFK-related offenses. This feature is designed to be lightweight, flexible, and does not require DiscordSRV to be installed. ---
Stay informed about server punishments in real-time, directly in your Discord channels. (Example of a notification in Discord) #### How It Works I've added a new, special action type:New Feature: Discord Webhook Notifications
DISCORD_WEBHOOK. You can add this action to any punishment list in yourconfig.yml(actions,progressive_punishment, orturing_test.on_failure_actions). When a player triggers that punishment, the plugin will send a custom message to your configured Discord webhook URL. #### Key Features: - Easy Setup: Simply enable the feature and paste your webhook URL into theconfig.yml. - Fully Customizable: You can define different messages for different punishments. All standard placeholders like%player_displayname%are supported. - No Dependencies: This system works by sending a direct HTTP request to Discord, so you do not need to have DiscordSRV installed on your server. - Asynchronous: All webhook messages are sent asynchronously, ensuring zero impact on your server's performance. ---
1. Create a Webhook in Discord: Go to your Discord channel's settings ->How to Configure
Integrations->Webhooks->New Webhook. Copy the "Webhook URL". 2. Enable in `config.yml`: Open yourconfig.ymland find the newdiscord_webhooksection. Enable it and paste your URL:
3. Add the Action to a Punishment: Add the# config.yml discord_webhook: enabled: true webhook_url: "PASTE_YOUR_WEBHOOK_URL_HERE" bot_name: "AntiAFK Guard" avatar_url: "" # Optional: URL to an image for the bot's avatarDISCORD_WEBHOOKaction type to any action list. For example, to send a notification when a player fails a captcha test:
That's it! You will now receive detailed notifications whenever the plugin takes action.# config.yml turing_test: on_failure_actions: # This action kicks the player - type: "CONSOLE" command: "kick %player% &cBot test failed!" # AND this action sends a Discord notification - type: "DISCORD_WEBHOOK" message: ":shield: **%player_displayname%** was kicked for failing the bot captcha test."1.0.2-b8Nov 10, 2025 AntiAFK 1.0.2-b8
(Türkçe Notlar Aşağıda) This update introduces some of the biggest innovations to AntiAFK to date. It includes a new Captcha infrastructure that fundamentally changes the bot detection system, advanced debugging tools, and significant improvements to existing systems.
A completely new visual verification method has been added to stop bots! Visual Verification:* In addition to the standard question-and-answer test, suspicious players are now shown a GUI filled with colored wool. Your Task: The player is asked to find and click on all wool blocks of a specific color (e.g., "Click all Red* wool!") within the time limit. High Security:* This interactive test is nearly impossible for simple chat-based bots to pass.  should appear and with what probability (weight). Example: 60% chance for Color Palette, 40% chance for Question-Answer.* Modular Design:* This new structure makes it much easier for us to add more Captcha types in the future (e.g., "Find the correct item," "Select the animal"). Per-Type Settings:* Settings for each Captcha type, such as timeout duration, can now be managed separately inconfig.yml.
A player-friendly improvement! * If a player accidentally closes the Color Palette GUI or misses the question in chat, they can now use theNEW:
/afktestCommand/afktestcommand to reopen their active Captcha test. * This prevents players from being unfairly marked as "failed the test."
Advanced Debugging:* A newImprovements & Fixes
debugsection has been added toconfig.yml. Instead of just settingenabled: true, you can now enable logs only for the specific modules you're interested in (e.g.,activity_listener,database_queries) to prevent console spam and identify issues faster. Rejoin Protection:* The system that prevents a player from immediately rejoining after being kicked for being AFK has been made more stable. The kick timing has been adjusted, and debug logs have been added for administrators. Code Refactor:* The entire Captcha management code has been refactored into a more performant and maintainable structure. With this update, AntiAFK takes a leap forward in protecting your server from AFK bots. Thank you for your support and feedback! ---AntiAFK 1.0.2-b8
Bu güncelleme, AntiAFK'nın bugüne kadarki en büyük yeniliklerinden bazılarını getiriyor. Bot tespit sistemini kökten değiştiren yeni bir Captcha altyapısı, gelişmiş hata ayıklama araçları ve mevcut sistemlerde önemli iyileştirmeler içeriyor.
Botları durdurmak için tamamen yeni bir görsel doğrulama yöntemi eklendi! Görsel Doğrulama:* Artık standart soru-cevap testine ek olarak, şüpheli oyunculara renkli yünlerin olduğu bir GUI gösteriliyor. Göreviniz: Oyuncudan, belirlenen süre içinde belirli bir renkteki (örn: "Tüm Kırmızı* yünlere tıkla!") tüm yünleri bulması isteniyor. Yüksek Güvenlik:* Bu interaktif testin, basit sohbet botları tarafından geçilmesi neredeyse imkansızdır.  hangi olasılıkla (weight) çıkacağını siz belirleyebilirsiniz. Örnek: %60 ihtimalle Renk Paleti, %40 ihtimalle Soru-Cevap.* Modüler Tasarım:* Bu yeni yapı, gelecekte daha fazla captcha türü (örn: "Doğru eşyayı bul", "Hayvanı seç") eklememizi çok kolaylaştırıyor. Tür Başına Ayarlar:* Her captcha türünün (Soru-Cevap, Renk Paleti) zaman aşımı süresi gibi ayarları artıkconfig.ymlüzerinden ayrı ayrı yönetilebilir.
Oyuncu dostu bir yenilik! * Bir oyuncu Renk Paleti GUI'sini yanlışlıkla kapatırsa veya sohbetteki soruyu kaçırırsa, artıkYENİ:
/afktestKomutu/afktestkomutunu kullanarak aktif captcha testini yeniden açabilir. * Bu, oyuncuların haksız yere "testi geçemedi" olarak işaretlenmesinin önüne geçer.
Gelişmiş Hata Ayıklama (Debug):*İyileştirmeler ve Düzeltmeler
config.ymldosyasına yeni birdebugbölümü eklendi. Artıkenabled: trueyapmak yerine, sadece ilgilendiğiniz modülün (örn:activity_listener,database_queries) loglarını açarak konsol kirliliğini önleyebilir ve sorunları daha hızlı tespit edebilirsiniz. Yeniden Giriş Koruması (Rejoin Protection):* AFK olarak atılan bir oyuncunun hemen sunucuya geri girmesini engelleyen sistem daha stabil hale getirildi. Atılma zamanlaması ayarlandı ve yöneticiler için debug logları e-klendi. Kod Refaktörü:* Tüm Captcha yönetimi kodu, daha performanslı ve yönetilebilir bir yapıya kavuşturuldu. Bu güncelleme ile AntiAFK, sunucunuzu AFK botlarına karşı korumada çağ atlıyor. Desteğiniz ve geri bildirimleriniz için teşekkürler!1.0.2-b6AntiAFK 1.0.2-b6Sep 14, 2025 AntiAFK 1.0.2-b6
- Critical Memory Leak Fixed: A critical object leak in the RecordingManager has been patched. Previously, MovementVector objects used during a pattern recording session were not always returned to the object pool if the recording was canceled, the player quit, or a server /reload occurred. This could lead to the pool becoming exhausted over time, causing errors. This leak is now fully resolved. - Enhanced Pool Configuration: The default configuration for the VectorPoolManager has been tuned for better performance on busy servers. I've increased the maximum pool size (maxTotal) and the maximum wait time (maxWait) to prevent pool exhaustion during moments of high server activity. - Safe Object Return: The returnVector method has been made safer with a try-catch block. This prevents potential IllegalStateException errors if a non-pooled object is ever inadvertently returned, making the system more robust against edge cases. - A proper cleanup procedure has been added to the plugin's onDisable() method. When the server stops or reloads, AntiAFK will now safely clear all active recording sessions and return all borrowed objects to the pool, preventing object leaks during shutdowns.1.0.2-b5AntiAFK 1.0.2-b5Sep 13, 2025 AntiAFK 1.0.2-b5
- Refactored AFK Command Registration to improve Dynamic handling.1.0.2-b4AntiAFK 1.0.2-b4Sep 13, 2025 AntiAFK 1.0.2-b4 Update
- New Language Support: - Spanish, - German, - French, - Russian, - Polish. - All Supported Languages: - Turkish, - English, - Spanish, - German, - French, - Russian, - Polish Configuration Details: - The language for system messages in the console is hardcoded in the plugin, but it can be changed in the config.yml file. - Language files for player-facing messages can be found <a href="https://github.com/bentahsin/AntiAFK/tree/master/messages…">here</a>. To change the language, you need to replace your messages.yml file with one of the provided language files.1.0.2-b3AntiAFK 1.0.2-b3Sep 13, 2025 AntiAFK 1.0.2-b3 - The Learning Update!
I'm excited to announce a major new release for AntiAFK, packed with a groundbreaking bot detection system I've developed, full internationalization support, and significant under-the-hood improvements. With this update, I've transformed AntiAFK from a simple AFK manager into an intelligent, proactive defense system for your server. ---
####Major New Features
Introducing "Learning Mode": Intelligent Pattern Recognition I've introduced a powerful Learning Mode in this update, leveraging machine learning principles to detect and counteract sophisticated AFK bots that follow predefined movement patterns or routes. This system goes beyond simple activity checks to analyze how players move over time. The system works by allowing you to record a sequence of player movements as a "pattern". I then use a highly optimized, asynchronous task I wrote to continuously compare the recent movements of all online players against a library of known bot patterns. A match is determined using the Dynamic Time Warping (DTW) algorithm, which effectively compares two movement sequences even if they are performed at different speeds. Key Features of Learning Mode: Asynchronous Pattern Analysis: I've built a new task (`PatternAnalysisTask`) that runs entirely off the main server thread to perform computationally intensive DTW comparisons, ensuring zero server lag*. High-Performance Design*: I've implemented object pooling (
Apache Commons Pool2) forMovementVectorobjects to significantly reduce garbage collection overhead, and used a lock-free queue to safely pass data between threads. Comprehensive Pattern Management*: I've added a new command suite,/antiafk pattern, to give you full control: *record: Start, save, or cancel the recording of a player's movements to create a new pattern. *list: View all saved patterns. *manage: Delete, move, or transform patterns between formats. Dual Serialization Formats: Patterns can be saved in human-readable JSON (for debugging) or a highly efficient binary Kryo* format for optimal performance. Extensive Configuration*: I've added a newlearning_modesection inconfig.ymlto allow for fine-tuning of the detection algorithm, including similarity thresholds, task frequency, and security limits. ####Full Internationalization (i18n) Support AntiAFK now speaks your language! I've completely overhauled the language system to provide a truly multilingual experience. All Messages are Translatable*: Every single message, including system logs in the console, error messages, and in-game commands, is now managed by the new language system I've implemented. New `lang` Setting*: You can now set the global language for the plugin directly in
config.yml. This controls the language for all console output. Initial Languages: I'm launching with full support for English and Turkish*. Adding new languages in the future is now incredibly simple. ---
Codebase Refinements*: I have refactored large parts of my code to cache manager instances (likeImprovements & Refactoring
ConfigManager) within classes instead of callingplugin.get...()repeatedly. This improves the code's readability and maintainability. ---
System Language Reload*: I fixed a critical bug where the system language for console messages would not update after using theBug Fixes
/antiafk reloadcommand. The reload process is now fully effective.1.0.2-b2AntiAFK - 1.0.2-b2Sep 11, 2025 AntiAFK - 1.0.2-b2 Güncellemesi
- Captcha sorularına birden fazla cevap ekleyebilme eklendi.1.0.2-b1AntiAFK - 1.0.2-b1Sep 11, 2025 Sürüm 1.0.2-b1
- Komutlar için implementasyonlu modüler yapıya geçilip sonraki geliştirme adımları hızlandırıldı. <details> <summary>İmplementasyonlu Modüler Komut Sistemi Görseli</summary>  sınama sistemi eklendi. - Yörüngesel algılama sisteminde bazı mantık hataları giderildi. - Katmanlı kontrol sisteminde öncelik sırası iyileştirildi.
Similar projects
Plugin →VeinMiner
Mine the whole vein on mining a single ore/block. Make the tedious mining experience to something satisfying and fun! FTB Ultimine alternative
99.3MSueta
Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
Chunky
Pre-generates chunks, quickly and efficiently
18.4MSueta
VeinMiner Enchantment
Veinminer Addon - Adds vineminer enchantment to enchanting tables. Only tools with the enchantment can veinmine
18MSueta
ItemSwapper
Inventory update concept for hotswapping items.
2.1MSueta
PacketEvents
PacketEvents is a protocol library tailored to Minecraft Java Edition, designed to facilitate the processing and transmission of packets.
829.2KSueta