Back to mods
Anti-Combatlog (AntiLogout) project artwork

Modrinth · Minecraft mod

Anti-Combatlog (AntiLogout)

Prevent combat logging & provide /afk command for farming!

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Anti-Combatlog (AntiLogout) release should I use?

Updated 1 year ago
Latest stable file 2.1.0
Game version 1.21.7
Loader Fabric

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.

Client Not supported
Dedicated server Required
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by Anti-Combatlog (AntiLogout) 2.1.0
required
Matching file found Matched file: [1.21.7] Fabric API 0.129.0+1.21.7

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.

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

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 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: /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!

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.

2 available setups

Check 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

3 of 3 releases match

Looking for an older file? The official Modrinth project page is in Resources.