
AntiAFK - The Performance AFK Solution
AntiAFK 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 protection without overloading your server.
Links
Tags
Creators
Details
1.0.2-b6
Compatibility
Changes
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.
Optional dependencies
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:ZrW0jIBC:Kt6QZGGO"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:ZrW0jIBC:Kt6QZGGO"
}
