Skip to content
◆ TTS-STUDIO docs Discord

Plugins / CombatLogger

Configuration reference

This is the config.yml CombatLogger writes on first start, comments included. Every key you see here is the key the plugin reads; there are no hidden ones. Change a value, reload, and it applies.

Top-level sections: language, combat, combat-hud, npc, penalty, worldguard, safe-zone, notifications, combat-music.

# ============================================================
# CombatLogger — config.yml
# ============================================================
# Combat tagging on PvP/PvE damage, command blocking while tagged,
# and (since v1.1.0) a per-player BossBar HUD with countdown.
#
# Reload with /combatlog reload after any change.
# ============================================================

# Active language. ISO-639-1 two-letter code (lowercase).
# Bundled out of the box: es (Spanish), en (English).
# Missing keys fall back to en automatically. Operators can drop extra
# lang/<code>.yml files in plugins/CombatLogger/lang/.
language: en

combat:
  duration-seconds: 15      # Seconds a player stays tagged after taking damage.
  pvp-enabled: true         # Tag on player-vs-player damage.
  pve-enabled: true         # Tag on player-vs-mob damage.
  blocked-commands:         # Commands silently denied while a player is tagged.
    - tp
    - tpa
    - home
    - spawn
    - warp
    - fly
    - gamemode
    - rtp          # SafeRTP
    - back         # SmartHomes
    - sethome      # SmartHomes
    - trade        # TradeForge
    - shop         # ShopForge
  disable-flight: true      # Take away flight (/fly) when tagged and give it back when the tag ends. Creative and spectator are left alone.
  disable-elytra: true      # No elytra gliding while tagged.
  restrictions-pvp-only: true # Flight and elytra limits only after a hit from another player, not from mobs.
  pearl-cooldown-seconds: 0 # Ender pearl cooldown while tagged, in seconds (0 = vanilla 1 s).
  untag-on-enemy-death: true  # When a player who hit you dies and nobody else who hit you is still alive and online, your tag ends.
  block-teleport: true      # Refuse teleports from commands and other plugins (warp/home menus) while tagged. Pearls and portals still work.
  exempt-kicks: true        # A player kicked by staff or a plugin, banned, removed by the whitelist, or a server shutting down is not a combat log. Kicks the player causes (spam, illegal characters, timeouts) still are.
  tag-indirect: true        # End crystals, respawn anchors, beds, TNT, lingering potions and tamed pets tag the player behind them.

# ============================================================
# COMBAT HUD  (v1.1.0)
# ============================================================
# Boss bar shown while in combat, counting the tag down. When it runs
# out without the player dying, they get an "Out of combat" action bar.
# Turning this off changes nothing else — the plugin behaves exactly
# as in v1.0.0 (no HUD, no extra overhead).
combat-hud:
  enabled: true
  bossbar-color: RED       # RED, PURPLE, BLUE, YELLOW, GREEN, WHITE, PINK
  bossbar-style: SOLID     # SOLID, SEGMENTED_6, SEGMENTED_10, SEGMENTED_12, SEGMENTED_20
  bossbar-text: "<red>⚔ In combat <gray>· <white>{seconds}s"
  exit-actionbar: "<green>✓ Out of combat</green>"

npc:
  without-citizens: kill    # No Citizens installed: kill = the player dies where they logged out (items drop there) | none = only counted
  duration-seconds: 30      # How long the Citizens ghost lingers after disconnect.
  hologram-text: "<red>[Combat Logger] <name>"
  death-broadcast: "<gold><player></gold> <red>was killed while logged out!"

penalty:
  mode: kill                # kill | clear  — what happens to the owner on re-login if the NPC died.

worldguard:
  respect-pvp-flag: true    # Skip tagging inside WG regions with pvp=deny.

# ============================================================
# SAFE-ZONE WALL  (v1.6.0)
# ============================================================
# A player tagged in a fight cannot run into a safe zone to end it.
# Safe zones are WorldGuard regions with pvp=deny and, when it is
# installed, DominionForge's spawn (its SAFEZONE).
#  - A step over the border is refused and the player pushed back.
#  - Near the border they see a wall of glass, sent to them alone and
#    never placed in the world. The glass is only a sign: the refusal is
#    done by the server, so hacked clients cannot walk through it.
#  - Ender pearls and chorus fruit into the zone are refused.
#  - Whoever still gets in (a glitch, a vehicle...) is taken back to the
#    last spot they stood outside and punished there.
safe-zone:
  enabled: true
  pvp-tag-only: true        # Only a tag from another player counts, not one from mobs.
  block-pearls: true
  knockback: 0.6            # How hard the border pushes back. 0 = no push.
  breach-penalty: kill      # kill | teleport-back — kill drops the loot outside, where the opponent can take it.
  wall:
    enabled: true
    material: RED_STAINED_GLASS
    radius: 8               # How close to the border the wall appears, in blocks (1-32).
    below: 1                # Rows drawn under the player's feet...
    above: 3                # ...and above them.

# ============================================================
# STAFF NOTIFICATIONS  (v1.2.0)
# ============================================================
# Broadcast a message to staff (combatlogger.notify) when a player
# combat-logs. Disable to suppress the broadcast entirely.
notifications:
  staff-broadcast: true

# ============================================================
# COMBAT MUSIC  (v1.7.0)
# ============================================================
# While a player is tagged, a track plays for them alone; when it ends
# the next one follows (never the same twice in a row). The tag ending,
# death or logging out stops it. Each player can turn it off for
# themselves with /combatmusic (alias /musica); the choice is kept.
# A track is any sound event the client knows: a vanilla one (works with
# no resource pack) or one from your server resource pack, e.g.
# "myserver:music.combat.boss". "seconds" is the track's length, used to
# start the next one on time.
combat-music:
  enabled: false
  pvp-only: true                # Only a tag from another player starts music, not mob hits.
  volume: 0.7                   # 0.0 - 1.0
  category: RECORDS             # Volume slider players use for it: RECORDS (Jukebox/Note Blocks), MUSIC, MASTER...
  stop-background-music: true   # Silence the game's own music when the fight starts (1.19+).
  now-playing: "<dark_gray>♪ <gray>{title}"   # Action bar when a track starts. "" = none.
  tracks:
    - sound: "minecraft:music_disc.pigstep"
      title: "Lena Raine - Pigstep"
      seconds: 149
    - sound: "minecraft:music_disc.otherside"
      title: "Lena Raine - otherside"
      seconds: 196

Keep reading