Combat Toggle: Commands
On this page (9)
Combat Toggle’s command suite differs between 1.20.1 Forge (where players toggle with the V keybind) and 1.19.2 Forge (which supports vanilla clients via /ct, /combat, /peace, plus region and offline-player management).
1.20.1 Forge commands
On 1.20.1, all commands live under /combattoggle and target online players only (EntityArgument.player()). Players toggle their own mode using the V keybind rather than a chat command.
Player commands (1.20.1)
Available to every player (permission level 0):
| Command | Effect |
|---|---|
/combattoggle |
Shows the same permission-filtered command help as /combattoggle help. |
/combattoggle help |
Lists commands available to your permission level. |
/combattoggle status |
Displays your current mode, remaining combat tag (if active), and any cooldown that actually restricts your next toggle. |
Admin commands (1.20.1)
Require permission level adminPermissionLevel (default 2, configurable 0–4 in combattoggle-server.toml), checked per invocation so reloads apply immediately:
| Command | Arguments | Effect |
|---|---|---|
/combattoggle get <player> |
<player>: online player |
Shows mode, combat-tag status/remaining time, effective blocking cooldown (or informational cooldown), cooldown source, and whether forceCombatWhileTagged currently applies. |
/combattoggle set <player> <combat|peace> [bypass] |
<player>: online player; combat|peace; [bypass]: true|false (default false) |
Sets a player’s mode. Setting a mode they already hold reports UNCHANGED (no event, no cooldown, no team churn). See What bypass=true does below. |
/combattoggle resetcooldown <player> |
<player>: online player |
Clears both last_toggle_tick and last_pvp_tick back to the “never” sentinel and resyncs the client. Reports if nothing was active. |
/combattoggle tag <player> [seconds] |
<player>: online player; [seconds]: 1–3600 (defaults to combatTagSeconds) |
Applies or extends a combat tag ( now + duration). If the existing tag already ends later, reports UNCHANGED rather than shortening it. Forces Combat mode if forceCombatWhileTagged = true. Fails if seconds is omitted while combatTagSeconds = 0. |
/combattoggle untag <player> |
<player>: online player |
Clears a player’s combat tag without firing the expiry message, CombatTagExpiredEvent, or restoreModeAfterTag. |
/combattoggle resync |
— |
Reconciles scoreboard teams from the current config and resyncs HUD state for every online player. |
/combattoggle reload |
— |
Deprecated alias for resync (prints a deprecation message reminding operators that Forge reloads .toml files automatically on disk change). |
/combattoggle debug <player> |
<player>: online player |
Prints an unlocalised diagnostic dump: schema version, world game time, mode/init flags, raw tag/tracker deadlines, force/restore state, cooldown ticks, effective policy flags, team state, and CombatMetrics counters. |
What bypass=true does (1.20.1)
Supplying true for [bypass] on /combattoggle set does two specific things:
- Skips the cooldown gate — only if
allowAdminBypassCooldown = trueincombattoggle-server.toml. - Skips the tagged-player gate — and when it uses this to switch a tagged player to Peace, it atomically clears their combat tag after
CombatToggleStateChangeEventsucceeds so the next PvP hit, respawn, or login cannot force them right back into Combat.
bypass=true never overrides another mod cancelling CombatToggleStateChangeEvent.
1.19.2 Forge commands
On 1.19.2, Combat Toggle registers root toggle commands for vanilla-client compatibility, supports multi-target selectors (EntityArgument.players(), e.g., @a[distance=..50]) for most admin actions, and integrates with Forge’s PermissionAPI (supporting LuckPerms / FTB Ranks out of the box).
Player commands (1.19.2)
| Command | Permission node | Vanilla fallback | Effect |
|---|---|---|---|
/ct |
combattoggle.toggle |
Level 0 (all) |
Toggles between Peace and Combat mode (or cancels a pending warm-up if toggling back). |
/combat |
combattoggle.toggle |
Level 0 (all) |
Explicitly sets your mode to Combat. |
/peace |
combattoggle.toggle |
Level 0 (all) |
Explicitly sets your mode to Peace. |
/combattoggle toggle |
combattoggle.toggle |
Level 0 (all) |
Alias of /ct. |
/combattoggle status |
combattoggle.status |
Level 0 (all) |
Shows mode, combat tag, blocking cooldown, pending warm-up, and respawn protection remaining. |
/combattoggle client |
combattoggle.client |
Level 0 (all) |
Shows your installed client-mod version or prints the optional client-mod info and download link. |
/combattoggle help |
— |
Level 0 (all) |
Clickable command list ( RUN_COMMAND / SUGGEST_COMMAND), hiding admin lines unless the caller passes combattoggle.admin.set. |
[!TIP]
/combatand/peaceare common literal names. If another mod or server plugin claims/combator/peace, fall back to/ctor/combattoggle toggle.
Admin commands (1.19.2)
| Command | Permission node | Vanilla fallback | Effect |
|---|---|---|---|
/combattoggle get <player> |
combattoggle.admin.get |
Level 2 |
Shows mode, tag status/remaining, cooldown remaining, and whether the player has the client mod (plus version). |
/combattoggle set <players> <combat|peace> [bypass] |
combattoggle.admin.set |
Level 2 |
Sets modes for one or more selected players. bypass=true skips cooldown (if allowAdminBypassCooldown) and tag guard (if allowAdminBypassTag). |
/combattoggle resetcooldown <players> |
combattoggle.admin.resetcooldown |
Level 2 |
Clears both toggle and PvP cooldowns (including frozen offline remainders) for selected players. |
/combattoggle tag <players> [seconds] |
combattoggle.admin.tag |
Level 2 |
Set-exact in both directions ( 1–3600s; defaults to combatTagSeconds): can shorten as well as extend an existing tag. Forces Combat mode if forceCombatWhileTagged = true. |
/combattoggle untag <players> |
combattoggle.admin.untag |
Level 2 |
Clears combat tags for selected players and clears their action/boss bars. |
/combattoggle list [combat|peace|tagged] [page] |
combattoggle.admin.list |
Level 2 |
Paginated (8 per page) list of online players filtered by all, combat, peace, or tagged, showing mode, tag, cooldown, and client-mod status (Y/-). |
/combattoggle resync |
combattoggle.admin.resync |
Level 2 |
Re-styles scoreboard teams (or removes them if disabled) and syncs all online players. |
/combattoggle reload |
combattoggle.admin.reload |
Level 2 |
Rebuilds the ServerRules snapshot from CTConfig, runs reload hooks (team re-styling, boss-bar cleanup), and resyncs all online players. |
Region commands (1.19.2)
All require combattoggle.admin.region (fallback level 2) and operate on the caller’s current dimension:
| Command | Effect |
|---|---|
/combattoggle region add <name> <from> <to> <peace|combat|normal> [priority] |
Creates a cuboid region between block coordinates <from> and <to> with rule peace (force Peace & suppress tagging), combat (force Combat), or normal (carves out standard rules inside a lower-priority region or spawnSafeRadius). priority accepts 0–1000 (default 0; highest wins on overlap). |
/combattoggle region remove <name> |
Deletes a region by name from the current dimension. |
/combattoggle region list |
Lists all regions in the current dimension with rule and priority. |
/combattoggle region info <name> |
Displays rule, priority, min/max coordinates, and block volume for <name>. |
/combattoggle region here |
Reports which highest-priority region covers your current position. |
Offline player commands (1.19.2)
Require combattoggle.admin.offline (fallback level 2):
| Command | Effect |
|---|---|
/combattoggle offline <name> get |
Reads <world>/playerdata/<uuid>.dat via the server profile cache and prints the offline player’s mode. |
/combattoggle offline <name> combat |
Sets the offline player’s saved capability to Combat ( preTagEnabled = true). |
/combattoggle offline <name> peace |
Sets the offline player’s saved capability to Peace ( preTagEnabled = false). |
/combattoggle offline <name> resetcooldown |
Clears both cooldown timestamps and frozen cooldown remainders in saved playerdata. |
/combattoggle offline <name> untag |
Clears any saved or frozen combat tag in saved playerdata. |
Offline edits refuse if the target is currently online (to prevent their in-memory capability from overwriting the file), create a <uuid>.dat_ct_bak backup first, and write via a temp file atomic move.
1.20.1 vs. 1.19.2 command comparison
| Capability | 1.20.1 Forge | 1.19.2 Forge |
|---|---|---|
Player chat toggles ( /ct, /combat, /peace) |
Not registered (use V) |
Registered |
/combattoggle bare command |
Shows help |
Brigadier root (use /combattoggle help) |
Multi-player selectors ( @a[...]) |
Single player only |
Supported on set, tag, untag, resetcooldown |
/combattoggle tag behaviour |
Extend-only (keeps longer tag) |
Set-exact (shortens or extends) |
/combattoggle reload |
Deprecated alias of resync |
Rebuilds rules snapshot, hooks & syncs |
list, region, offline, client subcommands |
Not present |
Present |
/combattoggle debug <player> |
Present |
Not present |
Permission system |
adminPermissionLevel (0–4) |
Forge PermissionAPI nodes (combattoggle.*) |