Anti-Combatlog (AntiLogout)

Anti-Combatlog (AntiLogout)

Prevent combat logging & provide /afk command for farming!

by
528 Downloads
fabricgame-mechanicsmanagement
Rent Server with this Mod

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: /afk command: 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, -1 for 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

Anti-Combatlog 2.1.0 for 1.21.7release
MC 1.21.7fabric
July 28, 2025
Anti-Combatlog 2.1.0 for 1.21.8release
MC 1.21.8fabric
July 28, 2025
Anti-Combatlog 2.0.0release
MC 1.21.7fabric
July 14, 2025

How to Install Anti-Combatlog (AntiLogout) on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.8).

3

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

fabric

Minecraft Versions

1.21.8, 1.21.7

Server-side

Required

Recommended 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.

Rent Modded Server

Install Anti-Combatlog (AntiLogout) with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Lesser General Public License v3.0 only
Server-side
Required

Supported Versions

1.21.81.21.7