Compatibility
Minecraft: Java Edition
1.21.7–1.21.8
Platforms
Supported environments
Links
Creators
Details
Licensed LGPL-3.0-only
Published 5 months ago
Updated 5 months ago
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!



