Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
What is CombatLog?
CombatLog prevents players from disconnecting while fighting another player. This is achieved by killing the player if they try to leave.
Why should I use CombatLog?
If your server aims to provide fair and fun fights, CombatLog is a must to stop players from disconnecting as soon as they are close to dying.
Config
To configure this mod:
- Start the server with CombatLog in your plugins folder
- Navigate to plugins/CombatLog/config.yml
- Open the file with a text editing program of your choice
- Save the file once you're done
- Run /combatlog-reload to reload the configuration
CombatTime
The time a player is considered as being in combat after hitting or getting hit by another player. The default value is 30 seconds.
BarLength
The length of the bar which acts like a loading bar until you can get out of combat. The default value is also 30 seconds. It is recommended but not a must to set this value to a multiple/fraction of the CombatTime (eg. CombatTime: 30 BarLength: 120 or 30 or 15).
DeathMsg
The custom death message for players who disconnect during combat. The default value is "%player% quit while fighting %killer%!". The strings %player% and %killer% are variables, that means they are replaced by the name of the player and the killer in the actual message.