Skip to content
◆ TTS-STUDIO docs Discord

Plugins / AfkGuard

AfkGuard

Knows the difference between AFK and a macro

AfkGuard is a free AFK plugin for Paper and Spigot, from 1.17 to 26.x. It marks players as AFK after five minutes without real movement, catches movement macros that try to fake activity, and stops natural mob spawns in areas where only AFK players are standing.

How it works in play

What you can turn on

How to use it

  1. Install: drop the jar into /plugins and restart once. Detection and /afk work straight away. English is the default; set language: es for Spanish.
  2. Adjust the timeouts in config.yml and give ranks the longer-timeout permissions.
  3. Enable the extras you want: auto-kick, the AFK zone (then stand on the spot and run /afk setspawn) or free-text reasons.
  4. Apply changes with /afk reload.

Commands and permissions

Placeholders

With PlaceholderAPI installed: %afkguard_status%, %afkguard_reason%, %afkguard_time% and %afkguard_count%.

Requirements

FAQ

Will it kick my players?
Not unless you enable auto-kick. It ships turned off.

Does reading chat count as AFK?
After five minutes without moving or looking around, yes. Typing in chat or running a command brings the player back. Give staff afkguard.bypass.detection if they should never be marked.

Can other plugins react when someone goes AFK?
Yes. The developer API tells your plugin when a player goes AFK and when they come back, with how long they were away.

Can I translate the messages?
Yes. English and Spanish are included in lang/, in MiniMessage, and missing keys fall back to English.

For questions or bug reports, use the discussion tab on this page or our Discord.

Keep reading