
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!
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21.7
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Ships as antilogout-2.1.0_1.21.7.jar — drop this file into the mods folder
- Download size: 282 KB
- Download link checked 5 Sept 2026 — working
These come from our own check of the pack file, not from the source page.