Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
Combat Log
Combat Log is a lightweight Fabric mod that adds configurable combat protection to your server. When a player is damaged, they are marked as being in combat for a set duration. During that time, selected commands can be blocked, and players who disconnect while still in combat can be punished according to your server settings.
🔧 How it works
Players enter combat after taking damage, and the combat state lasts for a configurable amount of time. While in combat, blocked commands are prevented, and players who leave the game during that window can be punished automatically based on your configuration.
✨ Features
/combatlog time <seconds>
– sets the combat duration
/combatlog status
– shows the current combat settings
/combatlog reload
– reloads the config from disk
/combatlog blockcommands on/off
– enables or disables command blocking during combat
/combatlog blockcommands list
– shows all blocked commands
/combatlog blockcommands add <command>
– adds a command to the blocked list
/combatlog blockcommands remove <command>
– removes a blocked command
/combatlog logoutpunish on/off
– enables or disables punishment on logout
/combatlog logoutpunish list
– shows all configured punishment commands
/combatlog logoutpunish add <command>
– adds a punishment command
/combatlog logoutpunish remove <command>
– removes a punishment command
/combatlog logoutpunish ifattacker on/off
– only punish if the player was the attacker
/combatlog markboth on/off
– mark both players as being in combat
⚙ Configurable
Combat duration Command blocking during combat Blocked command list Logout punishment behavior Punishment command list Whether both players are marked in combat
Perfect for PvP servers, survival servers, and any community that wants stronger combat rules and better anti-abuse protection.
In Combat

Punishment Message after logging in again

Punished Person after logging in.



