Repository navigation
Punishments
Staff punishments, run from the same menus and the same command as everything else in X-Warden. Ban, IP-ban, mute, IP-mute, warn and kick, with a full history and staff notes on every player, and escalating presets so the second offence is heavier than the first without anyone having to remember what the first was.
X-Warden never picks a punishment for you. The menu lists every preset, nothing is chosen in advance, and a finding carries no recommendation - a statistical check is not entitled to an opinion on somebody's account.
A preset is a named ladder in warden-punishments.yml. Each rung is a type and, where the type has
one, a duration:
presets:
xray:
name: "<red>X-Ray / cave finder"
material: DIAMOND_ORE
reason: "X-Ray / cave finder"
ladder:
- { type: BAN, duration: 14d }
- { type: BAN, duration: 60d }
- { type: BAN, duration: permanent }The first time a preset is applied to a player it takes the first rung, the next time the second,
and past the end the last rung repeats. What counts as a prior offence - the same preset, or any
punishment of the same type - and how far back, is set under escalation. Types are BAN,
IP_BAN, MUTE, IP_MUTE, WARN and KICK; durations are 30m, 12h, 14d, 2w or
permanent.
Each type has a command template. Fill it in and Warden runs that command as the console, so LiteBans, EssentialsX or AdvancedBan does the work:
commands:
ban: ["ban %player% %duration% %reason%"]
mute: ["mute %player% %duration% %reason%"]Leave a template empty and Warden applies that punishment itself: a timed ban on the server's
own ban list with its expiry, a mute by holding the player's chat and the commands listed under
mute-blocked-commands. Vanilla has no /mute and no timed /ban, which is what the fallback is
for - so the buttons work on a server with no punishment plugin at all. History, notes and
escalation are the same either way.
-
/xwarden punish <player> <preset> [reason]- apply the next rung. - The Punish button on any player report and on any finding's evidence screen opens the preset menu; a finding punished this way is recorded with the punishment.
-
/xwarden history <player>or the History button - every punishment and note, newest first. An active punishment is lifted from the menu with a second click, or with/xwarden unpunish <id> [reason]. -
/xwarden note <player> <text>- a staff note, kept with the history.
A check can apply a preset on its own: set its action to PUNISH in warden.yml and give it a
preset. Nothing ships that way except as a documented one-liner on cheat-client - see
Client Detection. Everything else stays on ALERT, because a statistical check
is a reason to look, not a verdict.
xwarden.punish, xwarden.punish.lift, xwarden.history, xwarden.note. All default to op.