Skip to content
◆ TTS-STUDIO docs Discord

Plugins / CombatLogger

CombatLogger

Log out of a fight and your body stays behind

CombatLogger is a free plugin for Paper and Spigot, from 1.17 to 26.x, that stops players from escaping a fight by logging out. When a fight starts both players are tagged, escape commands stop working and a boss bar counts down. A player who disconnects anyway leaves their body behind, and if it gets killed they pay for it when they come back. Running to spawn doesn't work either: a red glass wall keeps them out.

How it works in play

For staff

How to use it

  1. Install: drop the jar into /plugins, restart once and it's ready. Install Citizens too if you want the body left behind. English is the default; set language: es for Spanish.
  2. Set the rules in config.yml: tag length, whether mobs tag (PvE), the blocked commands, how long the body stays and the penalty (kill or clear).
  3. Style the HUD: boss bar colour, style and text, and the out-of-combat message. Set combat-hud.enabled: false to hide it.
  4. Apply changes with /combatlog reload.

Commands and permissions

Placeholders

With PlaceholderAPI installed: %combatlogger_in_combat% and %combatlogger_time_left%.

Requirements

None of them is required. Without Citizens everything else works, and a player who logs out in combat dies on the spot instead of leaving a body (npc.without-citizens). The plugin never refuses to start because an optional plugin is missing.

FAQ

Do the items drop when the body is killed?
No, they drop when the player logs back in and is killed (with the kill penalty). That way the inventory can't drop twice.

Can players get stuck in combat at spawn?
Not in WorldGuard regions with PvP denied, where no one is tagged. Staff can also clear a tag with /combatlog clear.

What if I don't want the wall, or the kill?
Set safe-zone.enabled: false to turn it off, or breach-penalty: teleport-back to send a player who slips in back outside instead of killing them. A mob hit never locks spawn: only a tag from another player counts.

Can mob damage be left out?
Yes. Set pve-enabled: false and only players tag each other.

Can I translate the messages?
Yes. English and Spanish are included in lang/, in MiniMessage, and missing keys fall back to English.

Does it work with TradeForge?

Yes. A tagged player carries the in-combat marker TradeForge checks, so trades are refused mid-fight without any setup.

For questions or bug reports, use the discussion tab on this page or our Discord.

Keep reading