CombatLog
CombatLog attempts to disincentivize diconnecting during a fight. When one player hits another, both are tagged in combat for a short time; disconnecting before the tag runs out kills the player who logged out.
How it works
The tag lasts 30 seconds by default and restarts with every hit. A tagged player who disconnects is killed and drops their items where they logged out. To do something other than kill them, set disconnect.kill to false and run a command from the disconnect hook, such as a warning.
Features
- Tags both players on a hit, for a configurable time
- Countdown in the hotbar or on a boss bar
- Kills tagged players who log out, with a configurable death message
- Command hook on disconnect, to warn or log instead of killing
- Blocks elytra takeoff, ender pearls, chosen items, blocks and commands while tagged
- Optional tagging from mobs, other entities, self damage and fire
- Command hook on tag, e.g. glowing or a sound
Server-side
Install it on the server. Clients do not need it, and it also works in singleplayer and LAN worlds.
Requirements
Fabric builds need Fabric API installed alongside the mod. Forge and NeoForge builds have no extra dependencies.
Configuration
Everything lives in config/combatlog.toml and can be changed in game with /combatlog config. Every option, default and command is on the wiki.
Versions
Fabric and NeoForge for 1.21.1, 1.21.10, 1.21.11 and 26.1.2. Fabric and Forge for 1.20.1.