Repository navigation
Configuration
Settings live in config/combatlog.toml, created on first start. Edit the file and run /combatlog reload, or change values in game with commands; both write the same file.
| Option | Default | What it does |
|---|---|---|
duration_seconds |
30 |
How long a tag lasts. Every hit restarts the timer. |
any_damage |
false |
Tag on damage from anything, not just another player. |
mob_damage |
false |
Tag when a mob or other living entity deals the damage. |
self_damage |
true |
Tag when a player damages themselves. |
fire_damage |
true |
Tag from fire, e.g. Fire Aspect or lava. |
| Option | Default | What it does |
|---|---|---|
elytra |
false |
Stops players starting elytra flight. Players already flying are not pulled down. |
ender_pearls |
false |
Stops tagged players throwing ender pearls, and a pearl already in flight is removed when it hits instead of teleporting. Pearls are added to blocked items automatically, so there is no need to list them there. |
blocked_items |
[] |
Items that cannot be used while tagged, e.g. ["minecraft:firework_rocket"]; only items with a right-click action are affected. waystones:* covers every item Waystones adds. |
blocked_blocks |
[] |
Blocks that cannot be right-clicked, e.g. ["minecraft:chest", "waystones:waystone"]. waystones:* covers every block Waystones adds. Only right-click interactions are affected. |
blocked_commands |
[] |
Commands blocked while tagged, without the slash. Matches the first word only, so blocking home also blocks home bed. |
| Option | Default | What it does |
|---|---|---|
in_combat |
"You are in combat do not leave! {timeLeft} seconds left" |
Countdown shown while tagged. {timeLeft} is the seconds left. |
out_of_combat |
"You are no longer in combat" |
Shown when the tag ends. |
blocked_command |
"You are in combat and cannot execute this command" |
Blocked command message. |
blocked_block |
"You are in combat and cannot use this" |
Blocked block or item message. |
disconnect_death |
"{player} has died of cowardice" |
Death message, with {player} and {attacker} filled in, e.g. "{player} was killed by {attacker}". {attacker} is blank when no other player was involved in the tag. |
| Option | Default | What it does |
|---|---|---|
enabled |
true |
Show the countdown and the blocked-action messages. With it off, players get no feedback at all. |
style |
"hotbar" |
hotbar or bossbar. A boss bar lingers for 3 seconds after combat ends. |
| Option | Default | What it does |
|---|---|---|
kill |
true |
Kill tagged players who disconnect, dropping their items where they logged out. |
attacker_credit |
"last_hit" |
Who gets the kill: last_hit or most_damage. |
| Option | Default | What it does |
|---|---|---|
on_tag |
"" |
Command to run when a player gets tagged, with {player} and {tagTime} filled in, e.g. effect give {player} glowing {tagTime}. Runs on both players on every hit, not just when combat starts. |
on_disconnect |
"" |
Command to run when a tagged player disconnects, with {player} and {attacker} filled in, e.g. say {player} combat logged. Runs in addition to the kill; turn kill off to use it on its own. |
Every item and block has an id, written mod:name: minecraft:chest is the vanilla chest, waystones:waystone comes from the Waystones mod. Replacing the name with * picks every id from that same mod, so minecraft:* is all of vanilla and waystones:* is everything Waystones adds.
Lists are TOML arrays in the file:
[restrictions]
blocked_commands = ["home", "spawn", "rtp"]A value in the file that does not parse is logged with a warning and replaced by the default. A file that cannot be parsed at all is moved to combatlog.toml.bak and recreated. The old json5 config is renamed to combatlog-common.deprecated.json5 on startup and is not imported.