Tags
Creators
Details
2.4
Compatibility
Changes
AntiAFKPlus v2.4 Changelog
šÆ Large AFK Pool Detection Enhancement
Problem Identified
Issue: Players were bypassing AFK detection by creating large AFK pools (20x10+ blocks) that circumvented existing detection systems.
Root Cause:
- Current detection focused on small confined spaces (ā¤5x5 blocks) and water circles (ā¤3 block radius)
- Large pools allowed players to move naturally via water currents without manual input
- System detected movement but couldn't distinguish between manual keystrokes and automatic water current movement
Solution Implemented
š§ New Detection Features
1. Keystroke Timeout Detection
- Added detection for players who don't provide manual keyboard input for extended periods
- Distinguishes between manual WASD movement and automatic water current movement
- Configurable timeout threshold (default: 3 minutes)
2. Large AFK Pool Pattern Recognition
- Expanded detection to identify pools between 5x5 and 25x25 blocks
- Analyzes movement patterns to identify water current automation
- Multi-factor validation prevents false positives
3. Enhanced Movement Analysis
- Velocity analysis to detect consistent water current speeds
- Direction change analysis to identify artificial vs natural movement
- Automatic vs manual movement classification
š Technical Changes
Files Modified:
MovementListener.java: Added keystroke detection and movement analysisPatternDetector.java: Implemented large pool detection algorithmsconfig.yml: Added configuration options for new detection methods
New Configuration Options:
pattern-detection-settings:
large-pool-threshold: 25.0 # Maximum area for large AFK pools
keystroke-timeout-ms: 180000 # 3 minutes without manual input
automatic-movement-velocity-threshold: 0.15 # Water current detection
š® Detection Logic
Large AFK Pool Detection Criteria:
- Movement area > 5x5 but < 25x25 blocks
- Player in water for extended periods
- Movement patterns consistent with water currents
- No manual keystrokes detected for 3+ minutes
Only triggers AFK when ALL criteria are met, ensuring legitimate gameplay is not affected.
ā Benefits
- Closes bypass loophole: Large AFK pools (20x10+) are now detected effectively
- Maintains accuracy: Multi-factor validation prevents false positives
- Configurable: Server owners can adjust thresholds based on their needs
- Performance optimized: Minimal impact on server performance
- Backward compatible: All existing detection methods remain unchanged
Version: 2.4
Release Date: 2025-08-07
Compatibility: Minecraft 1.16 - 1.21.8
Java: 17+
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:b4AUi0VN:UF5TjQre"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:b4AUi0VN:UF5TjQre"
}

