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.