
AFK-Preventer
Prevents AFK kicks by randomly pressing movement keys (W/A/S/D/Space) every 20-40 seconds while you are in-game.
About this Mod
⌨️ AFK Preventer, Stay online, stay safe.

🎲 How does it work?
First you press your key to activate it (default key is G but you can change it in Options →Controls) Every 20–40 seconds, it randomly presses one of your movement keys (W / A / S / D / Space) for a split second — just enough to reset the AFK timer without disturbing you.
🔧 What does it do?
Tired of getting kicked for being AFK? AFK Preventer silently runs in the background and keeps you in the game — no babysitting required.
✅ Features
🔇 Completely silent — no chat messages, no notifications
⚡ Lightweight — zero performance impact
🎮 Client-side only — works on any server
🔀 Fully random — timing and key selection are randomized every time
📦 Requirements for versions
AFK Preventer AUTO-X2:
Minecraft 1.21+
Fabric Loader
Fabric API
AFK Preventer AUTO-X1:
Minecraft 1.21+
Fabric Loader
Fabric API
Available Versions
How to Install AFK-Preventer 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 (26.1).
Install Mod
Open the mod browser in the dashboard and search for "AFK-Preventer". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.1, 1.21.11, 1.21.10 (+10 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
AFK-Preventer 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 (26.1). You can switch loaders with one click in the panel.
Is AFK-Preventer compatible with fabric?
AFK-Preventer officially supports fabric for Minecraft 26.1, 1.21.11, 1.21.10. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with AFK-Preventer – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if AFK-Preventer 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 AFK-Preventer with just one click on your server.