Compatibility
Minecraft: Java Edition
Platforms
Tags
Creators
Details
ZzzAfk
ZzzAfk makes idle and sleeping players (and mobs) easy to spot with floating, animated Zzz, and optionally keeps AFK players safe. Everything is configurable.
Built for Paper and Purpur 26.2 (tested on Purpur 26.2).
Features
AFK effects
- A player becomes AFK after a configurable time without activity (moving, chatting, running commands, clicking, breaking or placing blocks...), or manually with
/afk. - Floating Zzz above the player's head, in one of two modes:
cascade: small and bigzandZletters of different sizes that rise and grow, like a cartoon snore.static: a single animated text above the head.
- The same animated Zzz in the player's action bar.
- Crouch pose while AFK, so the character's head and body lean slightly down for everyone else. (Plugins cannot change a skin, so eyes cannot be closed.)
- A prefix and/or suffix in the tab list, such as
[AFK]. - An animated
znext to the player's name above their head. - An optional particle effect.
- Optional chat announcements when someone goes AFK or comes back.
Sleeping effects
Inspired by the "Subtle Effects" mod, the same Zzz also appears above:
- players sleeping in a bed,
- sleeping villagers,
- sleeping foxes,
- cats lying down.
Each one can be switched on or off, and mobs are only checked within a configurable radius around players, to keep the plugin light.
AFK protection (optional, all configurable)
- Mobs do not see or attack AFK players, and mobs that were chasing them give up.
- Other players cannot damage or knock back an AFK player (hits and projectiles). Attackers get a short message.
- Optionally ignore all damage, including fire, lava, falling and drowning.
- No knockback from explosions or wind, and nobody can push an AFK player.
- AFK players do not make mobs spawn around them and do not count when skipping the night.
- AFK ends automatically if the player takes damage that was not blocked, so nobody can hide in lava.
/afkis blocked for a few seconds after combat, to prevent escaping a fight.- Admins with
zzzafk.hit-afkcan still hit AFK players.
Commands
| Command | Description | Permission |
|---|---|---|
/afk |
Go AFK, or come back | zzzafk.afk (default: everyone) |
/zzzafk reload |
Reload the configuration | zzzafk.reload (default: OP) |
Other permissions
| Permission | Description | Default |
|---|---|---|
zzzafk.bypass |
Never becomes AFK automatically | none |
zzzafk.hit-afk |
Can damage AFK players despite the protection | OP |
Configuration
Everything is in config.yml: AFK time, effect mode and height, the letters and their sizes, animation frames and speed, the tab list and name tag texts, sleeping effects, the full protection list, and every message. All texts use MiniMessage, so you can use colors, gradients and bold.
The default messages are in Brazilian Portuguese and can be edited freely.
Requirements
- Paper or Purpur 26.2
Folia is not supported.
Notes
- The floating Zzz uses text display entities, so they may not be visible to Bedrock players (for example through Geyser). The tab list prefix and the action bar still work.
- The
znext to the name uses a scoreboard team. If a player is already in a team created by another plugin, ZzzAfk leaves that team alone. - Plugins that send their own tab list or name tag packets (such as TAB) may override the tab list prefix.
- If you use another plugin with an
/afkcommand (for example EssentialsX), they will conflict. Use only one. - Spectators and players hidden by vanish plugins that set the standard
vanishedmetadata do not get the effects.
Support
Found a bug or have a suggestion? Open an issue on the project page.


