Alerts, actions and punishments
Alerts#
Staff with mcanticheat.alerts get a chat line per flag with buttons: TP, Spectate, Case and, when a replay exists, Replay. Hover the name to see the numbers. /ac alerts switches them off for you. Dry-run flags only show for staff who typed /ac verbose (or everyone when alerts.shadow-to-all-staff is true). The same line goes to the console and, if set, to the Discord webhook.
Punishment notices#
When a player is kicked, banned, temporarily banned, queued for a punishment wave, punished by a command or rejected by the join gate, every staff member with mcanticheat.alerts (and the console) gets a line saying who, what happened, which check and the reason with its numbers. The text is punish.staff in lang.yml.
Actions#
Each check has a list of action lines, written "VL: action args". When the player's VL for that check reaches the number, the action runs once; it can run again after the VL has fallen below the first line and risen again.
| Action | What it does |
|---|---|
setback | Teleports the player back to the last position that passed every check. |
kick | Kicks with the message punish.kick-message. |
wave | Puts the player in the punishment wave queue. |
ban, tempban 3d | Bans through the method set in punishments.method. |
cmd <command> | Runs a console command. {player}, {uuid}, {check} and {reason} are replaced. |
monitor | Puts the player in monitor mode. |
A check's own actions list wins. When it is empty the list for its category under punishments.defaults is used. A check with setback: true sets the player back on every live flag.
speed:
setback: true
actions:
- "8: kick"
- "25: wave"
Ban method#
punishments.method is internal (the server ban list), command (the templates in punishments.commands) or mcbans (runs mcBans' own /ban and /tempban, templates in punishments.mcbans). mcBans has no Java API, so this hook uses its commands.
Punishment waves#
Wave actions queue a player. /ac wave run (or the panel, or punishments.wave.auto-run-minutes) bans everyone in the queue at once, so a cheater cannot tell which flag got them. /ac wave remove <name> takes someone out.
Modes that stop punishment#
learning-mode: trueturns every action off.- A check's
shadow: true(dry run) turns its actions off. - Staff can also make any player exempt or monitored with
/ac exemptand/ac monitor.