
AntiAFK - The Performance AFK Solution
AntiAFK - серверный плагин для Bukkit, Paper, Purpur и Spigot, который выявляет AFK-ботов, макросы и повторяющиеся маршруты. Проверка вопросом, настраиваемые наказания и анализ поведения помогают контролировать простой игроков без лишней нагрузки.
Список изменений
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.
