Skip to content

warden punishments.yml

Jan Kluka edited this page Sep 12, 2026 · 2 revisions
# =============================================================================
#  X-Warden - punishments
#
#  This file, with every key explained, is also on the wiki:
#  https://github.com/Drawethree/X-Warden/wiki/warden-punishments.yml
# =============================================================================
#
#  A preset is a named ladder: the first time it is applied to a player the
#  first step happens, the second time the second step, and past the end the
#  last step repeats. Staff pick a preset from the menu or with
#  /xwarden punish <player> <preset>; a check can apply one on its own when its
#  action in warden.yml is PUNISH and it names a preset.
#
#  Warden never suggests a preset. The menu lists them all, nothing is picked in
#  advance, and a finding carries no recommendation. Staff decide.
#
#  HOW A PUNISHMENT IS APPLIED
#
#  Every step is recorded here first, then applied. If the command template for
#  its type below is filled in, that command runs as the console and whatever
#  plugin owns it does the work - LiteBans, EssentialsX, AdvancedBan, your own.
#  If the template is empty, Warden applies the step itself: a ban goes on the
#  server's own ban list with an expiry, a mute holds the player's chat, a kick
#  and a warning speak for themselves. Vanilla has no /mute and no timed /ban,
#  which is what the fallback is for.
#
#  Names, lore, reasons and every message are raw MiniMessage.
# =============================================================================

enabled: true

escalation:
  # How far back a prior application counts towards the next step, in days.
  window-days: 90
  # same-preset  the ladder climbs only when the same preset is applied again
  # same-type    any earlier ban counts towards the next ban, whichever preset
  count: same-preset

# Kept this long, then deleted. Permanent punishments are never pruned.
history-retention-days: 365

# Command templates. One or more lines per type, run in order as the console.
# Empty means Warden applies that type itself (see the header).
#
#   %player%    name            %uuid%      uuid
#   %ip%        address (IP types, online players only)
#   %duration%  14d, 2h, 30m - or the permanent word below
#   %seconds%   the duration in seconds, -1 for permanent
#   %reason%    the reason      %staff%     who applied it
#   %preset%    preset id       %step%      1-based step on the ladder
#
# Ready-made lines - uncomment the set for the plugin you run:
#
#   LiteBans:     ban:     ["ban %player% %duration% %reason%"]
#                 ip-ban:  ["ipban %player% %duration% %reason%"]
#                 mute:    ["mute %player% %duration% %reason%"]
#                 ip-mute: ["ipmute %player% %duration% %reason%"]
#                 warn:    ["warn %player% %reason%"]
#                 kick:    ["kick %player% %reason%"]
#                 unban:   ["unban %player%"]   unmute: ["unmute %player%"]
#   EssentialsX:  ban:     ["tempban %player% %duration% %reason%"]
#                 mute:    ["mute %player% %duration% %reason%"]
#                 kick:    ["kick %player% %reason%"]
#                 unban:   ["unban %player%"]   unmute: ["mute %player%"]
#   AdvancedBan:  ban:     ["tempban %player% %duration% %reason%"]
#                 ip-ban:  ["tempipban %player% %duration% %reason%"]
#                 mute:    ["tempmute %player% %duration% %reason%"]
#                 warn:    ["warn %player% %reason%"]
#
# LiteBans and EssentialsX read "permanent" from the word below; AdvancedBan
# wants "perma", so set permanent-word accordingly.
commands:
  ban: []
  ip-ban: []
  mute: []
  ip-mute: []
  warn: []
  kick: []
  unban: []
  un-ip-ban: []
  unmute: []
  un-ip-mute: []
  # What %duration% becomes for a step that never ends.
  permanent-word: "permanent"

# When Warden enforces a mute itself, these commands are held as well as chat.
mute-blocked-commands:
  - msg
  - tell
  - w
  - whisper
  - r
  - reply
  - me
  - say

# What the player sees. %reason% %duration% %expires% %staff% %preset%
messages:
  ban-screen: "<red>You are banned from this server.<newline><gray>Reason: <white>%reason%<newline><gray>Until: <white>%expires%"
  kick-screen: "<red>You were kicked.<newline><gray>Reason: <white>%reason%"
  muted: "<red>You are muted. <gray>Reason: <white>%reason% <gray>- until <white>%expires%"
  warned: "<gold>Warning from staff: <white>%reason%"
  ip-ban-screen: "<red>Your address is banned from this server.<newline><gray>Reason: <white>%reason%<newline><gray>Until: <white>%expires%"
  expires-never: "never"

# -----------------------------------------------------------------------------
#  Presets
# -----------------------------------------------------------------------------
#  id:
#    name        what staff see in the menu
#    material    the icon
#    lore        extra lines under the name
#    reason      what the player, the ban plugin and the history record see
#    ladder      the steps, in order. type: BAN, IP_BAN, MUTE, IP_MUTE, WARN, KICK
#                duration: 30m, 12h, 14d, 2w, permanent (WARN and KICK take none)
#
#  Add your own, rename these, or delete what you do not use. Any preset you
#  remove is still named in the history of players it was applied to.
# -----------------------------------------------------------------------------
presets:
  dupe:
    name: "<red>Duplicated items"
    material: SHULKER_BOX
    lore:
      - "<gray>Proven by X-Warden: the same item"
      - "<gray>existed in two places at once."
    reason: "Duplicating items"
    ladder:
      - { type: BAN, duration: 30d }
      - { type: BAN, duration: permanent }
  cheat-client:
    name: "<red>Cheat client"
    material: COMPARATOR
    lore:
      - "<gray>Joined with a client that announced"
      - "<gray>a cheat mod."
    reason: "Cheat client"
    ladder:
      - { type: KICK }
      - { type: BAN, duration: 7d }
      - { type: BAN, duration: permanent }
  macro:
    name: "<gold>Macro / autoclicker"
    material: DIAMOND_PICKAXE
    lore:
      - "<gray>Mining rhythm no hand produces."
      - "<gray>Read the report first."
    reason: "Automated mining"
    ladder:
      - { type: WARN }
      - { type: BAN, duration: 3d }
      - { type: BAN, duration: 30d }
      - { type: BAN, duration: permanent }
  xray:
    name: "<red>X-Ray / cave finder"
    material: DIAMOND_ORE
    lore:
      - "<gray>Seeing ore through stone."
    reason: "X-Ray / cave finder"
    ladder:
      - { type: BAN, duration: 14d }
      - { type: BAN, duration: 60d }
      - { type: BAN, duration: permanent }
  economy-exploit:
    name: "<red>Economy exploit"
    material: GOLD_INGOT
    lore:
      - "<gray>Money that was never earned."
    reason: "Exploiting the economy"
    ladder:
      - { type: BAN, duration: 7d }
      - { type: BAN, duration: permanent }
  spam:
    name: "<yellow>Spam"
    material: PAPER
    lore:
      - "<gray>Flooding the chat."
    reason: "Spamming"
    ladder:
      - { type: WARN }
      - { type: MUTE, duration: 1h }
      - { type: MUTE, duration: 1d }
      - { type: MUTE, duration: 7d }
  toxicity:
    name: "<yellow>Toxicity"
    material: WITHER_ROSE
    lore:
      - "<gray>Harassment, slurs, threats."
    reason: "Toxic behaviour"
    ladder:
      - { type: MUTE, duration: 6h }
      - { type: MUTE, duration: 3d }
      - { type: BAN, duration: 7d }
      - { type: BAN, duration: permanent }
  advertising:
    name: "<yellow>Advertising"
    material: OAK_SIGN
    lore:
      - "<gray>Other servers, Discord invites."
    reason: "Advertising"
    ladder:
      - { type: MUTE, duration: 1d }
      - { type: BAN, duration: 30d }
      - { type: BAN, duration: permanent }
  alt-abuse:
    name: "<gold>Alt account abuse"
    material: PLAYER_HEAD
    lore:
      - "<gray>A second account used to cheat"
      - "<gray>a limit, a vote, a reward."
    reason: "Alt account abuse"
    ladder:
      - { type: WARN }
      - { type: BAN, duration: 7d }
      - { type: BAN, duration: permanent }
  ban-evasion:
    name: "<dark_red>Ban evasion"
    material: BARRIER
    lore:
      - "<gray>Back on a new account while banned."
    reason: "Ban evasion"
    ladder:
      - { type: IP_BAN, duration: 30d }
      - { type: IP_BAN, duration: permanent }

Clone this wiki locally