
Anti-Combatlog (AntiLogout)
Prevent combat logging & provide /afk command for farming!
About this Mod
AntiLogout
Stop combat logging on your server!
Prevents players from logging out during combat by keeping them in the game until the fight is over.
Features
- Combat logout protection: Players who log out during combat remain as a dummy in the world until combat ends.
- AFK command system:
/afkcommand: lets players logout with the account still online, with optional time limits. - Easy in-game configuration: Change settings and reload config without restarting the server.
- Permission system: Fine-grained control over who can use commands and features.
Commands
Player Commands
/afk [time] [player][time]— How long to stay AFK (in seconds,-1for unlimited)[player]— Set another player AFK (requires permission)
Admin Commands
/antilogout get <option>— View current settings/antilogout set <option> <value>— Change settings/antilogout reload— Reload configuration/antilogout status— Show mod status
Examples
/afk time 300— Go AFK for 5 minutes/afk time -1— Go AFK until you reconnect/antilogout set combatTimeout 30— Set combat timeout to 30 seconds
About
Note: This is a fork of the original AntiLogout (CombatLog & AFK) by samolego, updated for Minecraft 1.21.7 with code cleanup and improvements.
Have fun!
Available Versions
How to Install Anti-Combatlog (AntiLogout) 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.21.8).
Install Mod
Open the mod browser in the dashboard and search for "Anti-Combatlog (AntiLogout)". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.8, 1.21.7
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Anti-Combatlog (AntiLogout) 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.21.8). You can switch loaders with one click in the panel.
Is Anti-Combatlog (AntiLogout) compatible with fabric?
Anti-Combatlog (AntiLogout) officially supports fabric for Minecraft 1.21.8, 1.21.7. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Anti-Combatlog (AntiLogout) – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Anti-Combatlog (AntiLogout) 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 Anti-Combatlog (AntiLogout) with just one click on your server.