AntiLogout (CombatLog & AFK)
by samolego
When a player logs out during combat, AntiLogout keeps the character online for a set time, so a logout cannot end a fight.
What it does
AntiLogout is a server-side mod that stops players from escaping tagged combat by disconnecting. When a player logs out while in combat, the body stays in the world for a configured amount of time. Players who are AFK can be marked so that combat logging is disabled for them, which keeps AFK farming from being used to avoid danger.
The mod adds an afk command with a time setting, and an afk option for changing the time of other players. Permission nodes control who can set their own AFK time, who can set it for others, who can bypass tagged combat, and who can edit or reload the configuration. Operators decide those permissions on their server, so regular players can be limited to the commands they need.
Because it runs on the server alone, only the server owner needs to install AntiLogout. Players join without installing anything. Files are published for Fabric and Quilt, with 1.1.3 as the latest build for 1.20, released on 2023-06-08. The code is open source under the GNU Lesser General Public License v3.0 only, and the mod's source code and issue tracker are public.
Key features
Combat logging prevention
A player who disconnects during tagged combat remains as a body in the world for the configured time.
AFK command
Players can mark themselves as AFK with a time setting, and this disables combat logging while they are away.
Setting AFK time for others
A permission-gated option lets authorized players set the AFK time of other players.
Configuration commands
Authorized players can edit the AntiLogout configuration and reload it without restarting the server.
Compatibility
Latest build for each game version and loader.
This mod also publishes snapshot builds. Snapshots are not shown in the matrix.
Use cases
Protecting PvP servers
Server owners can keep players in combat by preventing them from leaving the world during a fight.
Limiting AFK farming
Disabling combat logging for AFK players stops them from using idle time to escape hostile encounters.
Who it’s for: Server owners who run survival or PvP servers and want players to stay in combat until it ends. Server administrators who need to control AFK status and configuration through permissions will also find the command set relevant.
Questions
Does AntiLogout need to be installed on clients?
Which loaders can run AntiLogout?
Which permissions control the AFK commands?
In the catalog
AntiLogout (CombatLog & AFK) is one of 11,058 Mobs mods on ModsFinder, and one of 5,189 Mobs mods for Fabric. 10,288 mods support Minecraft 1.20.
More from samolego
Similar mods
What the author says
Anti logout serverside mod! Provides /afk and disables combat logging. Want to afk on your farm that requires player online? Do you want to prevent players escaping from combat by looging out?
Official listing
- Modrinth page
- modrinth.com/mod/noexits
- Owner
- samolego
- Published
- 2023-01-24
- Updated on Modrinth
- 2023-06-08
- Facts verified
- 2026-10-15
