Idler Mod for Automatic Management of Inactive Players
Idler provides a specialized solution for Minecraft servers that automatically detects and handles players who haven't shown activity for extended periods. All session time data is saved in the config/idler/last_played.txt file, with all file operations performed in a separate thread to ensure server stability.
How the Activity Tracking System Works
The mod continuously monitors the following player actions:
- Joining the server
- Movement between locations
- Camera rotation
- Block breaking and placement
- Item and tool usage
Important: All changes to the file system are made according to an automatic save schedule, preventing potential performance issues.
Configuration Settings
The configuration file allows flexible customization of operation parameters:
{
"idle-timeout": 300,
"start-kick-free-slots": "21"
}
Parameter explanations:
idle-timeout- time in seconds before automatic disconnection of inactive playersstart-kick-free-slots- number of free slots at which the mod begins disconnecting inactive participants
Permission and Command System
Access Rights
idler.afk- grants the ability to enter AFK mode
Available Commands
/afk- toggles the user's status (active/inactive). The player won't be disconnected until the established timeout expires.
Additional feature: When a player enters AFK mode, their name in the participant list changes color to gray, allowing administrators to quickly identify inactive users.