Description
This is a simple mod designed for Forge 1.18.2 that tracks player activity. It requires no dependencies and needs to be installed on the server side only. It was specifically designed to work on my Vault Hunters server without the players needing to change any mods.
If a player is stands still for 5 minutes, they will be considered AFK and a message will be broadcast that the player is AFK. If any user, or the console runs the command /afklist, it will display all AFK players.
The mod also stores playtime data by the minute in the file (server directory)/config/afkmod/playtime.txt. It shows player name, UUID, how many hours and minutes they have played on the server, and how much time they spent AFK on the server (Counts separately from playtime). If you modify this file, it may cause errors when starting the server.
This mod does not have a configuration, all values are static. You can fork and modify the source code to your liking. I do not plan to update this mod frequently.
This mod does not have any sort of detection for repetitive loops in player movement such as AFK pools.


