Tags
Creators
Details
1.4
Compatibility
Changes
AntiAFKPlus v1.4 - Major Refinements & New Features!
This update brings a host of internal improvements, new features, and enhanced configurability to AntiAFKPlus, making it more stable, user-friendly, and powerful!
⨠New Features & Major Improvements
Advanced Autoclicker Detection:
Detection parameters (click window, threshold, minimum idle time) are now fully configurable in config.yml. Define specific actions upon detection: LOG (default), SET_AFK, or KICK the player.
Command Tab Completion: Enjoy easier command usage with tab completion for /afk and /afkplus subcommands and arguments.
Enhanced Developer API:
Added getTimeSinceLastActivity(Player) method to the API.
Improved reliability and predictability of markAsAFK(Player) and unmarkAFK(Player) API calls.
š§ Enhancements & Optimizations
- Core System Refactoring: Significant internal code restructuring for better stability, performance, and easier future development.
- Robust Task & Listener Management: All plugin tasks and event listeners are now managed more effectively, ensuring proper startup and shutdown, preventing potential errors or memory leaks.
- Optimized Event Handling: Refined player activity listeners (movement, interaction, etc.) for more accurate AFK state updates.
- Clearer Logging: Improved console logging for AFK events and debug information.
š Bug Fixes
- Addressed various internal logic issues for more consistent AFK state transitions (manual vs. automatic).
- Corrected method calls for PlaceholderAPI integration, ensuring placeholders like %antiafkplus_afktime% work reliably.
- Resolved minor bugs in command processing and message display.
- Ensured proper cleanup of player-specific data on quit/kick and for internal listeners.
āļø Configuration & Permissions
Complete Message Customization: Virtually all messages sent to players are now configurable via messages.yml.
New Configuration Options: broadcast-afk-state-changes: Toggle global "Player is now AFK" / "Player is no longer AFK" messages.
Full externalization of autoclicker detection settings.
Granular & Documented Permissions:
Introduced more specific permissions (e.g., antiafkplus.reload, antiafkplus.status.check, antiafkplus.bypass.autoclick, antiafkplus.bypass.itempickup). config.yml and plugin.yml now feature improved comments and a comprehensive permission overview for easier server administration.
Before Updating:
-
Please backup your existing AntiAFKPlus configuration files (config.yml, messages.yml).
-
Review the updated config.yml and messages.yml generated by v1.4 and transfer your settings. New options have been added!
-
Thank you for using AntiAFKPlus! We hope you enjoy these improvements.
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:20dandTy"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:b4AUi0VN:20dandTy"
}

