Automatic disconnect from game if damaged while AFK.
A client-side Fabric mod that protects you while you're AFK by automatically disconnecting if you take damage. AFK in peace.
All commands start with /afkguard:
/afkguard config - View the current configuration./afkguard delay <seconds> - Set the inactivity time before Auto-AFK triggers./afkguard messages <true|false> - Toggle status messages on enable/disable./afkguard ignoreplayerdamage <true|false> - Choose whether damage from other players should trigger a disconnect.The config file is located at .minecraft/config/afkguard.json. You can edit it manually or use the in-game commands. Cloth config is also supported. I recommend using mod menu with cloth config api to configure the mod in-game.
Conversation