
Modrinth · Minecraft mod
Anti-Combatlog (AntiLogout)
Prevent combat logging & provide /afk command for farming!
Quick answer
Which Anti-Combatlog (AntiLogout) release should I use?
Anti-Combatlog (AntiLogout) 2.1.0 targets 1.21.7 with Fabric. Do not install it on the client. It must be installed on the dedicated server. All 1 required mods have matching files.
Where it goes
Is Anti-Combatlog (AntiLogout) required on the client, server, or both?
Do not install it on the client. It must be installed on the dedicated server.
This file is marked server-only.
What else does Anti-Combatlog (AntiLogout) 2.1.0 need?
2.1.0. Change the file and its required mods may change too.
Install Fabric API first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Anti-Combatlog (AntiLogout) without breaking your instance.
Built for Anti-Combatlog (AntiLogout) 2.1.0. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 2.1.0. It targets 1.21.7 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
Do not install it on the client. It must be installed on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 2.1.0. It opens that exact file at the source.
About this project
What does Anti-Combatlog (AntiLogout) add?
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!
Project description from Modrinth.
Pick your setup
Anti-Combatlog (AntiLogout) by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.8
1 loader build1.21.7
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Anti-Combatlog (AntiLogout) versions and loaders
2.1.0
antilogout-2.1.0_1.21.7.jar
28 Jul 2025
2.1.0
antilogout-2.1.0_1.21.8.jar
28 Jul 2025
2.0.0
antilogout-2.0.0.jar
14 Jul 2025
Looking for an older file? The official Modrinth project page is in Resources.