AFK Guard
by HLVM
When a player steps away from the keyboard, AFK Guard can disconnect them automatically once they take damage, so an idle character is not hurt while the game runs unattended.
What it does
After a configurable period of inactivity, which defaults to 30 seconds, the guard switches on by itself. While it is active, taking damage triggers an automatic disconnect from the server. The delay and the status messages shown before and after a disconnect can be customized, and damage sources can be chosen as triggers.
AFK Guard is a Fabric mod for version 26.3 and the 1.21.11 – 26.3 range, where it has five release versions. Only the client needs it, so servers run without it and players install it alone. The code is shared under the Creative Commons Attribution Non Commercial 4.0 license, which means the project is not open source. Source code and an issue tracker are publicly linked.
Key features
Automatic guard after inactivity
The guard enables itself after a configurable period without input, defaulting to 30 seconds.
Disconnect on damage
While the guard is active, taking damage from a source causes the client to disconnect automatically.
Ignore player damage
An option exempts damage dealt by other players, which keeps the guard from triggering during combat.
Toggle the AFK timer
The automatic AFK timer can be enabled or disabled, so the guard only runs when the player wants it.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Questions
Does AFK Guard need to be installed on the server?
Which loader does AFK Guard use?
Can the guard be turned off or tuned?
In the catalog
AFK Guard is one of 8,016 Management mods on ModsFinder, and one of 5,930 Management mods for Fabric. 8,071 mods support Minecraft 26.3.
More from HLVM
Similar mods
What the author says
A client-side Fabric mod that protects you while you're AFK by automatically disconnecting if you take damage. AFK in peace.
Official listing
- Modrinth page
- modrinth.com/mod/afk-guard
- Owner
- HLVM
- Published
- 2026-02-05
- Updated on Modrinth
- 2026-09-22
- Facts verified
- 2026-10-15
