A safe AFK mode: /afk or idling makes you untouchable, and AFK players no longer block the night.
Mo’Afks
🛡️ Mo’Afks lets players step away without worry. Type /afk, or stand idle for a few minutes, and your character goes into a safe AFK mode: nothing hurts or pushes you, mobs leave you alone, and you don’t keep the night from passing. Move, and you’re back.
What you get
- 🛡️ Nothing hurts an AFK player: no damage of any kind, no burning, no drowning, no hunger. A fall into the void brings them back to where they went AFK.
- 🧲 Nothing moves them: no knockback from hits or explosions, mobs and players walk through them, projectiles and fishing hooks fly through, and boats and minecarts can’t scoop them up.
- 👻 Mobs leave them alone: no mob targets them, wardens don’t hear them, endermen don’t mind their stare, phantoms don’t come for them, and Bad Omen doesn’t start a raid.
- 🌙 AFK players don’t block the night. On a server where everyone has to sleep, one friend away from the keyboard no longer keeps the night going.
- ⚖️ The protection doesn’t pay off. Nobody goes AFK mid-fight, mid-fall, on fire, in water or lava, or with a mob on their heels. AFK players pick up no items or experience, and their health and hunger stay where they were.
- 🔙 Coming back is up to the player: walking, jumping, turning the camera, chatting, clicking, and more, each a switch. Water, pistons, and minecarts moving them don’t count, so AFK pools don’t fool it. If they come back somewhere dangerous, they land on a safe spot nearby.
- 🌍 Every player reads their own language. The plugin finds the player’s country by IP and picks a language for it: English, Russian, Spanish, Portuguese, and German come bundled. Write messages in MiniMessage: colors, gradients, clickable links.
- ⏱️ A time limit, if you want one: a warning in the action bar, then a kick.
- ✨ A ring of particles around AFK players and an [AFK] mark in the player list.
- ⚙️
/moafks reloadapplies changes without a restart, and AFK players stay AFK.
AFK changes nothing the game saves. A player who quits while AFK comes back not AFK, with nothing left over.
Install
- Put the jar in your server’s
plugins/folder and restart the server. - Edit
plugins/MoAfks/config.ymland the messages inplugins/MoAfks/lang/. - Run
/moafks reload.
Mo’Afks needs Paper 26.3 or a fork of it, like Purpur, on Java 25. A 1.x config.yml keeps working; move its messages to lang/.
How a player gets their language
- By IP. The plugin looks up the player’s country and checks
locales.countries: Russia gets Russian, Brazil gets Portuguese, Germany gets German, and so on. You can change the lists. - By game language. When the country isn’t listed, the plugin takes the language set in the player’s game, if a file in
lang/matches it. - Default. Everyone else gets
locales.default, English out of the box.
The country lookup needs no account and sends no address anywhere. On the first start, the plugin downloads a free country database (4 MB) and refreshes it every month. Players who connect through a proxy show up with the proxy’s address, so they get the proxy’s country.
Add a language: copy lang/en.yml to, say, lang/it.yml, translate it, add it: [ IT, SM, VA ] to locales.countries, and run /moafks reload.
Commands and permissions
| Command | What it does |
|---|---|
/afk [reason] |
Goes AFK, or comes back |
/moafks reload |
Reloads the config and the messages |
/moafks list |
Shows who is AFK and for how long |
/moafks locale [player] |
Shows a player’s language, country, and game language |
/afk needs moafks.afk, which everyone has. The rest need moafks.admin, which operators have.
PlaceholderAPI
With PlaceholderAPI installed, Mo’Afks adds %moafks_afk%, %moafks_afk_time% (seconds in this AFK spell), %moafks_afk_total% (seconds AFK across all sessions, to leave out of play time), %moafks_reason%, and %moafks_tag% (the [AFK] mark while AFK). If TAB formats your player list, turn off Mo’Afks’ own mark and put %moafks_tag% into TAB’s prefix.
In messages, <papi:name> shows %name% for the player it’s about. Mo’Afks doesn’t look for %…% in your text, so a percent sign stays a percent sign.
Links
- Source code, issues, the full config, and the list of every game event Mo’Afks handles: GitHub
- From the same author: Mo’Joins, join and quit lines in each player’s language, and Mo’Bosses, an RPG plugin that turns ordinary mobs into epic bosses
IP Geolocation by DB-IP, licensed under CC BY 4.0.
Pinned Versions
- R26.3
Pages
Members
1Owner