Nico's simple Combat Log
This modification for Minecraft version 1.19.2 with Forge support creates a combat tracking system for multiplayer servers. Its main purpose is to prevent logging out during PvP battles.
When a player takes damage from another participant, they are marked as being in combat state. If the player attempts to end their game session at this moment, their character automatically dies. This mechanism eliminates the possibility of prematurely leaving battles, which is especially relevant for PvP-oriented modpacks.