
AutoAFK
Server-side mod that automatically sets players to AFK mode after 3 minutes of inactivity, switching to spectator mode to prevent damage and hunger. Includes /afk command for manual toggling.
Screenshots





![/afk [target]](https://cdn.modrinth.com/data/qkF8HFpM/images/2c89d59067ce3ecf9a22fa0c53ac1018ab94d290.png)
About this Mod
🌙 AutoAFK – Smart AFK Management for Servers
AutoAFK is a server-side mod that automatically switches players to AFK mode after 3 minutes of inactivity. While AFK, players are put into Spectator mode, protecting them from hunger, damage, and death. Any player action immediately brings them back. A handy /afk command is also available for manual toggling.
✨ Features
⏱️ Automatic AFK Detection
Players are marked as AFK after 3 minutes of inactivity.👁️ Spectator Mode While AFK
Prevents hunger, damage, and death during AFK.📝
/afkCommand
Simple command for toggling AFK status.🛡️ Perfect for Servers
Great for managing inactive players and keeping them safe while away.
📦 Compatibility
- 🧩 Client&Server-side — client installation required.
- ✅ Compatible with other server-side mods and plugins.
- 🔧 Works great for Survival, RP, minigames, and more.
📌 Why AutoAFK?
If you want to keep your server organized and protect players who step away, AutoAFK is the perfect lightweight solution. Set it and forget it — the mod handles everything for you.
Available Versions
How to Install AutoAFK on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.1).
Install Mod
Open the mod browser in the dashboard and search for "AutoAFK". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.20.1
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
AutoAFK server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.
Is AutoAFK compatible with fabric?
AutoAFK officially supports fabric for Minecraft 1.20.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with AutoAFK – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if AutoAFK consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install AutoAFK with just one click on your server.