Skip to content

warden.yml

Jan Kluka edited this page Sep 15, 2026 · 19 revisions
# =============================================================================
#  X-Warden - anti-abuse for any server with an economy
#
#  This file, with every key explained, is also on the wiki:
#  https://github.com/Drawethree/X-Warden/wiki/warden.yml
# =============================================================================
#
#  Every message in warden-messages.yml is MiniMessage. Menus live in
#  warden-gui.yml. Reload with /xwarden reload.
#
#  HOW TO READ THIS FILE
#
#  Each check has the same six settings:
#
#    enabled       whether the check runs at all
#    sensitivity   1.0 is the preset default. BELOW 1.0 is stricter (it flags
#                  sooner), ABOVE 1.0 is more forgiving. Change this before you
#                  change anything else. It scales the line a reading has to
#                  cross - the score, the ceiling, the multiple of the median -
#                  and where a check has no line to move (a payment ring, a
#                  break rate the server cannot produce, item growth) it
#                  scales the confidence of the finding instead.
#    min-samples   how much data the check needs before it is allowed to have an
#                  opinion. A check below its minimum is silent, not lenient.
#    action        LOG, ALERT, COMMAND, PUNISH, FREEZE, KICK or BAN. See
#                  "actions" below.
#    vl-threshold  how much violation level has to build up before the action
#                  fires. Until then the check only logs.
#    vl-decay      how much violation level drains away per minute.
#
#  A single flag adds (confidence / 100) to the violation level. So a check with
#  vl-threshold 5 needs roughly five confident flags before it acts, and with
#  vl-decay 1.0 a player who stops for five minutes is back to zero.
#
#  THE ONE RULE WORTH KEEPING
#
#  A banned paying customer is a refund, a bad review and an evening you will not
#  get back. Every statistical check here ships on ALERT for that reason. Watch
#  what your own server produces for a week before you give anything a punishment.
#  The two exceptions are duplicate-item, which is proof rather than statistics,
#  and cheat-client, which is the client's own statement about itself.
#
#  A NOTE ON vl-threshold AND vl-decay
#
#  A check that cannot report again before decay has taken back more than one
#  finding is worth has a ceiling, and a ceiling under vl-threshold means the
#  check detects what it was built for and tells nobody, for ever. The pairings
#  shipped here are reachable on purpose: a finding is worth at most 0.90 and
#  decay is charged per minute. Warden checks the arithmetic on every start and
#  names any check you have tuned out of reach with a [tuning] line.
#
# =============================================================================

enabled: true

# Which upgrades Warden has already applied to this file. Managed by the plugin
# on start; leave it alone. An older file is brought up to date one line at a
# time, every change is named in the console, and the original is copied to
# backups/ first.
config-version: 2

# Which preset the thresholds start from. A preset is a file in
# plugins/X-Warden/presets/ - edit one, copy one under a new name, or drop in
# one you bought - and it is listed by /xwarden preset from the next reload.
# Anything you set in this file overrides the preset.
#
#   balanced        the default. Conservative, and never punishes on its own.
#   lenient         flags only what is impossible to argue with. For an owner
#                   who would rather miss a cheater than annoy a player.
#   strict          tighter thresholds and shorter patience. Only worth running
#                   once you have watched another preset on your own server and
#                   found it quiet.
#
# Three more are sold separately and install the same way:
#
#   op-prison       big numbers, maxed pickaxes breaking a block every tick, a
#                   full server. Tuned so a prestige jump, a gang pooling money
#                   and a two-hour silent grind are not what gets reported.
#   casual-prison   human-speed mining, multipliers in the tens, twenty people
#                   online is a good night. The peer checks work with a smaller
#                   crowd and the timing signals have real data to read.
#   economy-server  survival, skyblock, factions, towns - money and no prison.
#                   Income comes from a shop, not a pickaxe, so a big sale and a
#                   strip miner in a 1x1 tunnel are not what gets reported, and
#                   the items worth duplicating on a survival server are named.
#
# No preset punishes: raising a check's action is always an edit you make
# here, never something a preset does for you. Deleting one of the three
# bundled files restores it on the next start.
preset: balanced

command:
  # The command is /xwarden, with /warden and /wd already registered as
  # aliases in plugin.yml. This block records them for the freeze check, which
  # has to let a frozen player answer a verification prompt.
  name: xwarden
  aliases:
    - warden
    - wd

# Worlds Warden ignores completely: no mining measured, no findings raised. Useful for a creative
# or build world where none of this means anything.
disabled-worlds: []
#  - creative
#  - build

# -----------------------------------------------------------------------------
#  Storage
# -----------------------------------------------------------------------------
storage:
  # Where Warden keeps its own data - the ledger, findings, fingerprints and
  # sessions. Warden is its own plugin and keeps its own database by default; it
  # never writes into X-Prison's tables. The X-Prison features - currency events,
  # pickaxe identity, sell prices - work the same whichever option you pick, so
  # this is only about where Warden's rows live.
  #
  #   h2     Warden's own embedded file (warden.mv.db in this folder). Default.
  #   auto   share X-Prison's database when the core is installed, and use
  #          Warden's own H2 file when it is not - one database to back up.
  #   mysql  a MySQL server, for keeping Warden's data off the machine the
  #          server runs on. One server per database: Warden issues its own row
  #          ids in memory, so two servers pointed at the same database hand out
  #          the same ones and the second one's findings are refused.
  #
  # H2 rather than SQLite because it is pure Java - SQLite ships per-platform
  # native binaries that fail on musl and on some ARM hosts - and because it is
  # what the test suite runs against, so the storage path you get is the one
  # that is actually tested.
  type: h2
  # File name for h2, inside this folder. The .mv.db suffix is added for you.
  file: warden
  mysql:
    host: localhost
    port: 3306
    database: warden
    user: root
    password: ""

# How long a recorded flag is kept before it is deleted. The flag history is what
# /xwarden report and the inbox read, so this is how far back staff can look.
violation-retention-days: 60

# -----------------------------------------------------------------------------
#  Actions
# -----------------------------------------------------------------------------
#  What each action a check can take actually does:
#
#    LOG      recorded and visible in /xwarden flags; nothing reaches chat
#    ALERT    staff holding xwarden.alerts are told, with a click to investigate
#    COMMAND  runs that check's commands: list, with %player% and %uuid% filled
#    PUNISH   applies the punishment preset named on the check (preset: <id>,
#             from warden-punishments.yml), stepping up its ladder the way a
#             staff member would from the menu. A check with no preset alerts
#             and does nothing more, and the console says so.
#    FREEZE   holds the player still until staff release them
#    KICK     removes them, with the check id in the reason
#    BAN      bans them
#
#  An action only fires once the check's vl-threshold is reached. Until then it
#  logs. Every statistical check ships on ALERT.
actions:
  # How long a FREEZE lasts before it ends by itself, in minutes.
  #
  # A freeze only staff can lift strands the player when nobody is on to lift
  # it, and a frozen player cannot run a command to ask. Set it to 0 to freeze
  # until somebody runs /xwarden unfreeze.
  #
  # A freeze is also released by quitting: it holds somebody still while a
  # moderator walks over, it is not a punishment that follows them.
  freeze-minutes: 10

# -----------------------------------------------------------------------------
#  Alerts
# -----------------------------------------------------------------------------
alerts:
  permission: xwarden.alerts
  # Flags below this confidence never reach staff chat. They are still recorded
  # and still visible in /xwarden flags.
  min-confidence: 40
  console-echo: true
  # Repeat alerts about the same player from the same MODULE are suppressed for
  # this long, and the next one that gets through says how many were held back.
  #
  # Per module rather than per check on purpose. A live macro trips break-speed,
  # interval-variance and periodicity every analysis window and the composite on
  # top of that - four separate checks, all of them automation, all saying the
  # same thing. Keyed per check they each got their own line and one miner
  # produced roughly seven alerts a minute. Keyed per module they collapse into
  # one, while a duplicated item or a money finding on that same player still
  # cuts through immediately: proof is never held back behind statistics.
  #
  # Bug notices are never throttled. They are certainty rather than suspicion,
  # and every one of them is raised against the same placeholder player.
  #
  # The findings themselves are all still recorded either way, and the flag list
  # groups the repeats into one row.
  throttle-seconds: 60
  # The sound a flag plays to staff. Every check shares this one on purpose:
  # staff learn a single cue and know a finding landed without reading chat
  # first. Any check below can set its own "sound:" to break out of it, and a
  # blank one there means it uses this.
  #
  # Any sound name your server version knows. An unknown name is reported once
  # in the console; the alert is still sent, just silently.
  sound:
    enabled: true
    name: BLOCK_BELL_USE
    volume: 1.0
    # 0.5 to 2.0. Higher cuts through a busy server better.
    pitch: 1.0

# -----------------------------------------------------------------------------
#  File logging
# -----------------------------------------------------------------------------
#  Warden writes its own log to plugins/X-Warden/logs/, so its history is not
#  buried in the server-wide latest.log. Everything is captured: sweeps, the
#  staff audit trail, bug notices and the startup report.
#
#    logs/
#      latest.log          the session running right now
#      archive/            rolled copies, named by the day they cover
#      errors/errors.log   warnings and errors only - the file to send with a
#                          support request
#
#  Writing happens off the server thread. If the queue ever fills, lines are
#  dropped rather than made to wait, because a log is not worth a stall.
# -----------------------------------------------------------------------------
logging:
  enabled: true
  # DEBUG, INFO, WARN, ERROR or OFF. Independent of what the console shows.
  level: INFO
  # A file rolls into archive/ when it passes this size, or when the day turns.
  max-file-kb: 4096
  # Rolled files older than this are deleted on startup. Without it the archive
  # becomes the largest thing Warden writes and the one nobody reads.
  retention-days: 14

# -----------------------------------------------------------------------------
#  Discord webhook
# -----------------------------------------------------------------------------
#
#  The url must be an https:// address. Anything else is refused rather than sent
#  in the clear, and Warden says so in the console once.
#  Leave the url empty to keep this off. Only high-severity findings are sent.
#
#  /xwarden webhook <player> posts a sample finding, so the layout below can be
#  seen in the channel without waiting for a real one.
webhook:
  enabled: false
  url: ""
  # The name and picture the post appears under. Empty keeps whatever the webhook
  # was created with in Discord.
  username: ""
  avatar-url: ""
  min-confidence: 80
  # The least serious action worth posting: LOG, ALERT, COMMAND, PUNISH, FREEZE,
  # KICK or BAN. LOG posts everything Warden records, which on a busy server is
  # a great deal - ALERT is the same set your staff already see in chat.
  min-action: ALERT
  # Which modules to post. Empty means all of them.
  modules: []
  #  - integrity
  #  - economy
  # Repeat posts about the same player and the same check are suppressed for this
  # long. Discord rate-limits each webhook, and one determined macro is enough to
  # reach that limit - at which point nothing gets through, not just the repeats.
  # Set it to 0 to post every finding.
  throttle-seconds: 30
  timeout-millis: 5000
  # A single summary post instead of, or as well as, one per finding. Nothing is
  # sent for a window in which nothing was found - a daily zero teaches people to
  # ignore the channel.
  digest:
    enabled: false
    interval-minutes: 1440
    # %hours% %findings% %players% %busiest%
    title: "X-Warden: the last %hours%h"
    description: "**Findings:** %findings%\n**Players:** %players%\n%busiest%"
    # What %busiest% becomes - %check% %count% - or nothing when nothing was found.
    busiest: "**Busiest check:** %check% (%count%)"
    colour: 15158332
  # One embed per punishment staff apply (or a check applies through a preset).
  # %player% %uuid% %punishment% %type% %duration% %reason% %staff% %preset%
  # %step% %id% %finding%. The thumbnail is the same player head as below.
  punishments:
    enabled: true
    title: "Punishment: %punishment%"
    description: "**Player:** %player%\n**By:** %staff%\n**Reason:** %reason%\n**Preset:** %preset% (step %step%)"
    # Decimal. 10181046 is purple.
    colour: 10181046
  # One embed per installed plugin whose version is listed in vulnerabilities.yml,
  # once per start. %plugin% %version% %title% %severity% %fixed% %source%
  vulnerabilities:
    enabled: true
    title: "Vulnerable plugin: %plugin% %version%"
    description: "**%title%**\nSeverity: %severity%\nFixed in: %fixed%\n%source%"
    # Decimal. 15105570 is orange.
    colour: 15105570
  # One embed per finding. Every text here takes:
  # %player% %uuid% %module% %check% %scope% %confidence% %vl% %action%
  # %severity% %id% %time% %summary%
  # Any part left "" is left out of the embed.
  embed:
    title: "X-Warden flag: %check%"
    description: "**Player:** %player%\n**Module:** %module%\n**Confidence:** %confidence%%\n**Action:** %action%\n\n%summary%"
    # Where the title links to. A panel, a forum thread, "" for no link.
    url: ""
    # Decimal, not hex. 15158332 is red.
    colour: 15158332
    # When the finding was made, shown by Discord in the reader's own timezone.
    timestamp: true
    # The player's head, top right. Discord fetches the picture from the address,
    # not your server, so this costs nothing here. Any skin service that takes a
    # UUID works: https://crafatar.com/avatars/%uuid%?size=64&overlay is another.
    # On an offline-mode server the UUID is not the player's Mojang one, so the
    # service shows a default skin rather than theirs.
    thumbnail: "https://mc-heads.net/avatar/%uuid%/64"
    # A large picture under the text. "" for none; %uuid% works here too, for
    # example https://mc-heads.net/body/%uuid%/128
    image: ""
    # The small line above the title.
    author:
      name: "%player%"
      icon: "https://mc-heads.net/avatar/%uuid%/32"
      url: ""
    # The small line under everything.
    footer:
      text: "%severity% - finding #%id%"
      icon: ""
    # Attach the measurements themselves as embed fields, each next to what an
    # ordinary player looks like on the same one. Without this Discord gets the
    # headline and staff have to open the game to see why.
    include-readings: true
    # Side by side, or one under another.
    readings-inline: true
    # How each reading is written: %value% %verdict%, then %typical% on the next
    # line when the check knows what ordinary players look like.
    readings-verdict: "%value% (%verdict%)"
    readings-typical: "ordinary players: %typical%"

# =============================================================================
#  MODULES
# =============================================================================
#  A module set to enabled: false registers no listeners and runs no tasks. It
#  costs nothing. Turning off everything but economy is a supported way to run
#  Warden.
# =============================================================================

modules:

  # ---------------------------------------------------------------------------
  #  ECONOMY - invariants, ledger, multiplier auditing, anomaly detection
  # ---------------------------------------------------------------------------
  economy:
    enabled: true

    ledger:
      # The ledger is what makes /xwarden rollback and the player report possible.
      # Turning it off keeps the invariant guard and the alerts but leaves you
      # with no history to look at afterwards.
      enabled: true

      # WHAT IS WRITTEN TO DISK, AND WHAT IS NOT
      #
      # Mining pays out through the same event thousands of times a second. Two
      # hundred miners across two currencies would be roughly half a million rows
      # a day if every payout window were stored, and almost every one of those
      # rows is read once by an anomaly check five minutes later and then never
      # again. So mining income lives in three tiers:
      #
      #   in memory   minute-by-minute, for the last memory-window-minutes. This
      #               is what the anomaly checks and a recent rollback read.
      #   on disk     one row per player per currency per HOUR, written when that
      #               hour closes. Sixty times fewer rows and sixty times fewer
      #               writes than storing every window.
      #   on disk     one running total row per player per currency, updated in
      #               place. Bounded by how many players you have, not by time.
      #
      # Individual transactions - pay, shop, withdraw, admin give, gambling - are
      # always written as their own rows. They are the forensic record, they are
      # what rollback reverses precisely, and they are low volume.

      # How often the in-memory accumulator is folded into the tiers above.
      bucket-seconds: 60

      # How many minutes of minute-resolution income to keep in memory. This is
      # the window in which a rollback is exact to the payout rather than to the
      # hour. Roughly 200 players x 2 currencies x this many entries, so 90 is a
      # few tens of thousands of small records.
      #
      # Anything under 60 is raised to 60. A rollback hands the hourly rows
      # everything before the first hour boundary memory still covers, so a
      # window shorter than an hour would leave a gap between the two tiers that
      # neither of them answers for.
      memory-window-minutes: 90
      # A hard ceiling on that store, so a server that never restarts cannot grow
      # it without limit.
      memory-window-max-entries: 250000

      # Write the hourly rollups at all. Turning this off means mining income
      # exists only in memory: anomaly checks and recent rollbacks still work
      # exactly the same, but a restart erases mining history and a rollback
      # cannot reach back past it. The running totals are still kept either way,
      # so the lifetime-spike check keeps working.
      persist-hourly-income: true

      # Individual transactions kept this long.
      retention-days: 30
      # Hourly mining summaries kept this long. One row per player per currency
      # per hour, so this can be generous.
      income-retention-days: 90

    audit:
      # X-Prison has no single method that resolves a total multiplier. Skins,
      # pickaxe quality, enchant rewards and the multipliers module each change
      # the payout at their own stage, so Warden measures the payout at four
      # points on its way through instead of trying to recompute it.
      #
      # This is the busiest event in the plugin, so it is sampled: one payout in
      # this many is measured in full. /xwarden audit and /xwarden watch always
      # measure, regardless of this number.
      #
      # Lowering this to 1 audits everything. On a large server that is real CPU.
      sample-rate: 200
      # A payout multiplied more than this many times over its base value is
      # reported. Prison multipliers stack multiplicatively, so a legitimate
      # total of a few thousand is normal on an OP server - this is set to catch
      # a stacking bug, not a well-equipped player.
      #
      # FALSE POSITIVE: a player who genuinely holds a global event multiplier, a
      # personal booster, a rank multiplier, a maxed skin and a high pickaxe
      # quality all at once. If that combination is possible on your server,
      # raise this number rather than lowering it.
      multiplier-ceiling: 1000000.0
      # Multipliers only ever scale a payout up. A stage that returns less than
      # this fraction of what went into it has lost money to rounding, which is a
      # defect in whatever did it and is reported as a bug rather than as a player.
      multiplier-loss-tolerance: 0.999

    ceiling:
      # A hard cap on how far a single payout may exceed its own base value.
      # Zero disables it, which is the default.
      #
      # BE CAREFUL: switching this on turns off audit sampling, because a cap has
      # to see every payout to enforce it. Expect the cost of sample-rate: 1.
      # It also silently reduces a legitimate payout that crosses the line, so
      # set it well above anything your economy actually produces, or not at all.
      multiple: 0.0

    rollback:
      enabled: true
      # The longest window /xwarden rollback will consider, in minutes.
      max-minutes: 1440

    anomaly:
      # How much recent history the peer checks look at, in minutes.
      #
      # Everything below - income per block, balance velocity, the lifetime
      # spike and the payment rings - measures a player over this window. Too
      # short and a single lucky payout dominates it; too long and a burst of
      # cheating is averaged away by an honest afternoon.
      #
      # Worth matching roughly to how long one of your mine cycles takes.
      window-minutes: 15
      # How often the peer checks run, in seconds.
      interval-seconds: 300
      # The longest chain of payments treated as a laundering ring: A pays B,
      # B pays C, C pays A. A ring of five is invisible at 4.
      #
      # FALSE POSITIVE: a large gang that genuinely trades among itself will
      # form rings. Raise this only if you are prepared to read what it finds.
      max-payment-ring: 4
      # A check that compares a player against the rest of the server needs a
      # rest of the server to compare them to. Below this many measured players,
      # the peer checks stay silent rather than guessing.
      #
      # On a server that rarely has 25 people mining at once, lower this - but
      # know that the smaller the population, the noisier the comparison.
      velocity-population-min: 25
      # How far above the server median income-per-block a player has to sit
      # before it is worth a look, as a percentage.
      #
      # FALSE POSITIVE: somebody mining a genuinely richer mine than everybody
      # else, or the first player to reach a new rank. Both look identical to
      # this check until the rest of the server catches up.
      expected-payout-tolerance-percent: 35

    # Checks the sell prices at startup and names anything obviously wrong: a
    # negative price, a price that is not a number, or a region paying wildly
    # more than the global price for the same block. It reports; it does not
    # change anything. X-Prison only - Vault has no prices to check.
    shop-sanity-check: true
    # How many times the global price a sell region may pay before the check
    # says something at startup.
    #
    # FALSE POSITIVE: a legitimate high-prestige mine that genuinely pays far
    # more than spawn. Raise it rather than turning the check off, so a real
    # typo somewhere else is still caught.
    shop-region-factor-limit: 25.0

    # -------------------------------------------------------------------------
    #  Without X-Prison
    # -------------------------------------------------------------------------
    #  Vault publishes no events, so nothing can be inspected before it lands
    #  and no payout can be measured while it is being multiplied. Warden falls
    #  back to reading balances and working backwards, which supports:
    #
    #      the ledger, balance velocity, lifetime spike, income per block
    #
    #  and cannot support:
    #
    #      the invariant guard      nothing to refuse an amount at
    #      vanished payouts         same reason
    #      multiplier auditing      no stages to measure between
    #      circular payments        Vault never says who paid whom
    #
    #  Warden names the missing ones in the console at startup rather than
    #  running them on inference. Install X-Prison for the full set.
    vault:
      # How often balances are read. Lower is more precise about when money
      # moved and costs more; two changes inside one interval are seen as one
      # movement either way.
      #
      # Read on the server thread, because a Vault economy is under no
      # obligation to be thread safe, and spread across ticks so a full server
      # is never read in a single one.
      poll-seconds: 10

    checks:

      # Rejects NaN, infinity, negative credits and absurd magnitudes at the
      # boundary, before they reach a balance.
      #
      # This one is not about players at all. Anything it catches is a defect in
      # the core or in an addon, and it is reported as a BUG NOTICE under
      # core/bug, never as a violation against whoever happened to be standing
      # there. Leave it on.
      #
      # Because it raises no violation, it has no violation level and nothing to
      # escalate - so it takes no action, sensitivity, threshold, decay or sound,
      # and none are listed below. It has one switch, and that switch only
      # decides whether you are told.
      invariant-guard:
        # Switching this off silences the notice. It does NOT switch off the
        # protection: the amount is still corrected before it reaches anybody's
        # balance, and no key here changes that.
        enabled: true

      # A payout that starts positive and is credited as zero without being
      # cancelled. That is what a NaN looks like after the core has converted it
      # through a double. Also a bug notice, not an accusation.
      vanished-payout:
        # This one only ever reported; there is nothing for it to correct, because
        # by the time a payout has been lost through a double the original value
        # is already gone. Switching it off means you are not told.
        enabled: true

      # A single payout multiplied further than multiplier-ceiling allows.
      #
      # FALSE POSITIVE: a legitimate stack of every multiplier your server sells
      # at once. Check /xwarden audit on the player before acting - it prints
      # exactly which stage produced the number.
      multiplier-mismatch:
        enabled: true
        sensitivity: 1.0
        min-samples: 1
        action: ALERT
        vl-threshold: 3.0
        vl-decay: 0.5
        # Blank uses the shared alerts.sound.name.
        sound: ""

      # Income per block far above what the same block pays everybody else right
      # now. Measured against the live server distribution, not a fixed number,
      # so it does not go stale when the server prestiges.
      #
      # FALSE POSITIVE: the only player in a high-tier mine.
      income-per-block:
        enabled: true
        sensitivity: 1.0
        min-samples: 500
        action: ALERT
        # Alerts after three scans: about 15 minutes of earning far above your
        # other players.
        vl-threshold: 2.0
        vl-decay: 0.05
        # Blank uses the shared alerts.sound.name.
        sound: ""

      # Earning more in fifteen minutes than nearly everyone else on the server.
      #
      # FALSE POSITIVE: your best player having a good session, or somebody who
      # just sold a full backpack they spent an hour filling.
      balance-velocity:
        enabled: true
        sensitivity: 1.0
        min-samples: 25
        action: ALERT
        # Alerts after three scans, about 15 minutes.
        vl-threshold: 2.0
        vl-decay: 0.05
        # Blank uses the shared alerts.sound.name.
        sound: ""

      # Money moving in a circle and returning to where it started, which is
      # either an exploit being laundered or an alt farm consolidating.
      #
      # FALSE POSITIVE: friends trading back and forth, or a gang pooling money
      # and redistributing it.
      circular-payment:
        enabled: true
        sensitivity: 1.0
        min-samples: 1
        action: ALERT
        # Alerts after two scans, about 10 minutes - a ring is stronger evidence
        # than a peer comparison.
        vl-threshold: 1.5
        vl-decay: 0.05
        # Blank uses the shared alerts.sound.name.
        sound: ""

      # A gain larger than the player's entire recorded history before it.
      #
      # FALSE POSITIVE: any new player, and everyone on the day you install
      # Warden, because their recorded history starts empty. This check is worth
      # far more in week two than in week one.
      lifetime-spike:
        enabled: true
        sensitivity: 1.0
        min-samples: 1
        action: ALERT
        # Alerts after two scans, about 10 minutes.
        vl-threshold: 1.5
        vl-decay: 0.05
        # Blank uses the shared alerts.sound.name.
        sound: ""

  # ---------------------------------------------------------------------------
  #  INTEGRITY - item identity, duplicate detection, quarantine, circulation
  # ---------------------------------------------------------------------------
  #  HOW A DUPE IS PROVEN
  #
  #  Every item that cannot stack gets an identity the first time Warden sees it
  #  in a real container - a player's inventory, an ender chest, a chest in the
  #  world, a hopper, a shulker box's contents. Menus, shop screens and crafting
  #  grids are never touched. From then on every move that item makes is
  #  written down, and the same identity turning up in two places at once is a
  #  duplicate: not a guess, the thing itself. The copy that was not there first
  #  is taken into quarantine, where staff can hand it back.
  #
  #  Stackable items cannot carry an identity (splitting a stack would hand
  #  both halves the same one), so for them Warden watches for what a dupe
  #  leaves behind instead: a stack larger than the game allows, a run of relogs
  #  with a container open, operator-only items in ordinary hands, and a pile of
  #  wealth out of all proportion to the time spent earning it.
  # ---------------------------------------------------------------------------
  integrity:
    enabled: true

    fingerprint:
      # Prison pickaxes already carry an identity of their own, so Warden reads
      # it rather than adding a second one.
      pickaxes: true
      # Give every item that cannot stack an identity of Warden's own the first
      # time it is seen. This is what makes a duplicated elytra, sword, key or
      # custom item provable, not only a prison pickaxe.
      #
      # FALSE POSITIVE, and the one thing to know: a kit, shop entry or crate
      # reward that was saved from an item that already carried an identity
      # hands every buyer the same one. The first two buyers look exactly like
      # a dupe handed to a friend and are treated as one: both are flagged and
      # the second copy is quarantined. The third buyer is what makes it look
      # like a template - and also what a duper selling copies looks like, so
      # Warden does not decide. It stops flagging and taking for that identity,
      # tells staff, and waits: /xwarden template confirm withdraws the findings,
      # hands the copies back and ignores the identity for good (then hold the
      # item, run /xwarden unstamp, and save the template again); /xwarden
      # template reject keeps treating it as a duplicate. Holders the linked
      # accounts module has tied together count as one person here.
      all-unstackable: true
      # Materials never to stamp, whatever the setting above says. Items that
      # some other plugin rewrites on every use belong here.
      ignore-materials: []
      #  - WRITTEN_BOOK
      #  - FILLED_MAP
      #  - PLAYER_HEAD
      # With all-unstackable off, only the materials listed below are stamped.
      custom-items: false
      # Which materials to stamp when custom-items is on.
      #
      # ONLY UNSTACKABLE ITEMS CAN BE FINGERPRINTED. An identity lives in the
      # item's metadata, so splitting a stamped stack would hand both halves the
      # same one and report a duplicate nobody created. Anything that stacks is
      # skipped, and named in the console at startup so you know it was.
      custom-materials: []
      #  - ELYTRA
      #  - NETHERITE_PICKAXE
      #  - NETHERITE_SWORD
      #  - NETHERITE_CHESTPLATE

    # The live index: where every identity was last seen, kept in memory and
    # updated as items move. This is what finds a duplicate the moment it
    # appears rather than at the next sweep. Off, items are only read at the
    # sweep, and a duplicate found there is still confirmed, reported and
    # quarantined the same way - just up to scan.interval-minutes later.
    live:
      enabled: true
      # How many identities the index remembers. About 230 bytes each; 250,000
      # is the busiest server anybody has run this on with room to spare. When
      # it is full the oldest entries are dropped, checked every five minutes,
      # and the console says so once an hour.
      max-entries: 250000
      # How many inventories are read per tick after items have moved. Reading
      # is cheap; this only caps a burst.
      max-inventories-per-tick: 64
      # How many shulker boxes or bundles are opened per inventory read. A box
      # is 27 stacks to look at.
      max-nested-per-inventory: 36

    # What happens to the copy of a duplicated item that should not exist.
    quarantine:
      # Take it out of play and keep it. Staff hand it back with
      # /xwarden quarantine restore <id>, or from the player's report. Nothing is
      # ever deleted: the item is stored in full and also written to Warden's log.
      enabled: true
      # One identity seen in this many different people's hands stops being
      # acted on and is put to staff (see all-unstackable above). Never below
      # 3: at 2, any item handed to a friend would pause the check on it.
      template-holders: 3
      # Restored items are kept in the record this long. Items nobody has
      # restored are kept for ever.
      retention-days: 90

    # The relog dupe: leave with a container open at the moment its contents are
    # being saved, come back holding what the container still holds. The server
    # closes the container as the player leaves, so the plugin that owns it
    # saves first; Warden counts how often somebody leaves that way, and closes
    # it itself on a server build that does not.
    relog-guard:
      close-on-quit: true
      window-seconds: 60
      # Leaving this many times inside the window, each time with a container
      # open, is reported under container-relog below.
      max-relogs: 3

    overstack:
      # Materials a plugin of yours deliberately hands out in stacks larger than
      # the game allows, so the overstacked-item check leaves them alone.
      ignore-materials: []

    # Items the server only ever hands to operators. Seen in ordinary hands they
    # are reported and, if quarantine below is on, taken. Creative mode is
    # exempt. Spawners and bedrock are deliberately absent - many servers sell them.
    contraband:
      materials:
        - COMMAND_BLOCK
        - CHAIN_COMMAND_BLOCK
        - REPEATING_COMMAND_BLOCK
        - COMMAND_BLOCK_MINECART
        - STRUCTURE_BLOCK
        - STRUCTURE_VOID
        - JIGSAW
        - BARRIER
        - LIGHT
        - DEBUG_STICK
        - KNOWLEDGE_BOOK
      quarantine: true

    # The carry review: what a player carries, valued, per hour they have been
    # online, against everybody else online. A statistical look at the piles a
    # dupe leaves behind when the items themselves cannot be traced. It reports;
    # it never takes anything.
    carry-review:
      # Value items by this server's own sell prices when X-Prison is present.
      # They are what the players actually chase.
      use-sell-prices: true
      # Two or more shulker boxes with exactly the same contents are listed on a
      # finding and raise its confidence. Builders keep identical boxes of
      # blocks; boxes of diamond blocks are a different matter, which is why the
      # value weighs in and the count alone never reports.
      identical-shulker-min: 2
      # What one of each is worth when there is no sell price for it. Anything
      # not listed is worth nothing to the review. Tune this to your server.
      values:
        DIAMOND: 1
        DIAMOND_BLOCK: 9
        EMERALD: 1
        EMERALD_BLOCK: 9
        NETHERITE_INGOT: 8
        NETHERITE_BLOCK: 72
        ANCIENT_DEBRIS: 2
        NETHER_STAR: 40
        ELYTRA: 50
        BEACON: 60
        TOTEM_OF_UNDYING: 10
        ENCHANTED_GOLDEN_APPLE: 20
        SHULKER_SHELL: 5

    scan:
      # Whether Warden sweeps on its own. The sweep is the backstop to the live
      # index, and the only way registered containers (vaults, backpacks) and
      # the carry review are checked. Off means those only run on /xwarden scan,
      # which nobody remembers to do at 3am.
      automatic: true
      # What staff are told after a scheduled sweep.
      #
      #   never       nothing is announced; findings still alert as usual
      #   found-only  a line only when something was found
      #   always      a line every time, so you can see it is running
      #
      # Every sweep is written to the log file whatever this says.
      announce: found-only
      # How often every online inventory, ender chest and registered container is
      # swept for the same identity appearing twice.
      interval-minutes: 15
      # How many players are read per server tick during that sweep. Reading a
      # full server in one tick is a visible hitch, so the sweep is spread out.
      # Lower is gentler and takes longer; 25 finishes a 200-player server in
      # eight ticks.
      batch-size: 25
      # Write every sweep to Warden's own log file as well, so there is a record
      # of what was checked and when long after the console has scrolled away.
      log-to-file: true
      # How long those sweep records are kept, in days.
      log-retention-days: 14

    circulation:
      # Tracks how many of each fingerprinted item class exist between sweeps.
      #
      # BE AWARE: Warden cannot see legitimate sources. It does not know that you
      # ran a give command or that a crate paid out, so it measures RAW growth and
      # every increase looks unexplained. The check's min-samples below is
      # therefore a tolerance, not a sample count - set it above however many
      # items your server hands out between sweeps. It ships on LOG for this
      # reason. Turn it off if your server gives items out in bulk.
      #
      # Recorded once per duplicate sweep, so it follows scan.interval-minutes
      # above rather than having a schedule of its own.
      enabled: true

    lag:
      # Duplicate attempts often ride deliberately induced lag. When the server
      # dipped below this TPS in the run-up to a scan, findings from that scan
      # are raised in priority. This never produces a flag on its own.
      tps-threshold: 17.0
      window-seconds: 120

    retention-days: 30

    checks:

      # The same item identity existing in two places at once.
      #
      # There is no arrangement of legitimate play that produces this, which is
      # why it is one of the two checks in Warden for which shipping above ALERT
      # is even worth considering. It is still ALERT by default, because you
      # should see it work on your own server before you let it act.
      #
      # NOT A FALSE POSITIVE, but worth knowing: an addon that stores items
      # without registering a container source is invisible here, so a duplicate
      # hidden inside it is missed rather than mis-reported.
      duplicate-item:
        enabled: true
        sensitivity: 1.0
        min-samples: 1
        action: ALERT
        # Below 0.95, which is what one finding of this check is worth, so the
        # very first duplicate acts. A threshold of 1.0 reads like "one
        # violation" and is not: a check contributes its confidence as a
        # fraction, so a 95%-confident finding adds 0.95 and the first one
        # would fall short and quietly downgrade itself to LOG.
        vl-threshold: 0.9
        vl-decay: 0.0
        # Blank uses the shared alerts.sound.name.
        sound: ""
        commands: []
        #  - "warn %player% Duplicate item detected"

      # More of a fingerprinted item class in circulation than the last sweep found.
      #
      # FALSE POSITIVE: anything that legitimately creates items - a give command,
      # a crate payout, a kit. Warden cannot see any of those, so they all look
      # like growth. min-samples is how much growth to tolerate before saying
      # anything. This is the noisiest check in Warden; LOG is the right
      # setting for it until you know what your own server produces.
      circulation-anomaly:
        enabled: true
        sensitivity: 1.0
        min-samples: 5
        action: LOG
        # Alerts after two sweeps, about 30 minutes at the shipped scan interval.
        vl-threshold: 1.5
        vl-decay: 0.02
        # Blank uses the shared alerts.sound.name.
        sound: ""

      # A stack holding more of an item than one stack can carry. The game never
      # makes one; a dupe, a creative-mode trick or a plugin does.
      #
      # FALSE POSITIVE: a plugin that deliberately hands out oversized stacks -
      # some sell wands and voucher systems do. Name the material under
      # overstack.ignore-materials above rather than switching this off.
      # Nothing is taken; the stack is only reported.
      overstacked-item:
        enabled: true
        sensitivity: 1.0
        min-samples: 1
        action: ALERT
        vl-threshold: 0.9
        vl-decay: 0.0
        # Blank uses the shared alerts.sound.name.
        sound: ""
        commands: []

      # One of the operator-only items listed under contraband above, in the
      # hands of somebody who is not in creative mode.
      #
      # FALSE POSITIVE: a staff account in survival mode carrying a barrier
      # block to a build. Give staff xwarden.bypass.integrity, or take the
      # material off the list.
      contraband-item:
        enabled: true
        sensitivity: 1.0
        min-samples: 1
        action: ALERT
        vl-threshold: 0.9
        vl-decay: 0.0
        # Blank uses the shared alerts.sound.name.
        sound: ""
        commands: []

      # Leaving the server relog-guard.max-relogs times inside the window, each
      # time with a container open.
      #
      # FALSE POSITIVE: a connection that keeps dropping while somebody sorts a
      # chest. Read the timestamps in the finding: three quits ten seconds apart
      # is a macro, three quits a minute apart with a long session between is
      # a bad wifi.
      container-relog:
        enabled: true
        sensitivity: 1.0
        min-samples: 1
        action: ALERT
        vl-threshold: 0.8
        vl-decay: 0.0
        # Blank uses the shared alerts.sound.name.
        sound: ""
        commands: []

      # Carrying far more value for the hours spent online than anybody else on.
      # Measured against the players online right now, never against a fixed
      # number, and dormant below min-samples players online.
      #
      # FALSE POSITIVE: a veteran who keeps their wealth on them, a new player
      # somebody handed a full shulker, or a value table that does not fit this
      # server. LOG is the right setting until you have read what it finds.
      carry-review:
        enabled: true
        sensitivity: 1.0
        min-samples: 10
        action: LOG
        vl-threshold: 1.5
        vl-decay: 0.02
        # Blank uses the shared alerts.sound.name.
        sound: ""

  # ---------------------------------------------------------------------------
  #  AUTOMATION - autoclickers, macros, AFK mining
  # ---------------------------------------------------------------------------
  #  WHAT THIS CAN AND CANNOT DO, PLAINLY
  #
  #  Speed is not the signal. Consistency is. A person's timing wanders; a macro's
  #  does not, and a macro that adds random jitter on a fixed loop still repeats
  #  that loop in a way a person never does.
  #
  #  A hardware autoclicker - a weighted mouse, a soldered switch - CANNOT be
  #  reliably told apart from a fast human on timing data alone. Nothing here
  #  pretends otherwise. What does separate it is the combination of a camera
  #  that never drifts, a session that never breaks, and no chat, no commands and
  #  no inventory for an hour. Those three carry real weight in the score below
  #  for exactly that reason.
  #
  #  Treat the score as a reason to go and look, not as a verdict.
  # ---------------------------------------------------------------------------
  automation:
    enabled: true

    # How many recent block breaks are kept per player. Fixed size - it does not
    # grow. Larger sees longer patterns and uses more memory per miner.
    sample-size: 200
    # No score is produced below this many breaks. A short burst of concentration
    # looks exactly like a macro; three hundred breaks does not.
    min-samples-for-score: 60
    # Resolution of the timing histogram.
    interval-buckets: 16

    # Below this gap between breaks, in milliseconds, the SERVER is setting the
    # pace and not the player.
    #
    # Blocks break on tick boundaries, so a gap is always a multiple of about
    # 50ms. A player fast enough to break one block per tick has no room left to
    # vary - every gap is identical, and a person and a macro produce exactly the
    # same numbers. On an OP prison, where a maxed pickaxe is the point of the
    # server, that is most of your players.
    #
    # When most of a player's gaps sit at or below this, the three timing signals
    # go quiet instead of scoring, in the same way a check below its minimum
    # sample count stays quiet. Camera movement, session continuity and movement
    # repetition still run - and those are what catch a clicker at tick speed
    # anyway.
    #
    # Raise it if your server runs below 20 TPS often enough that a tick is
    # longer than 50ms. Set it to 0 to switch the guard off entirely, which will
    # flag anybody with a fast enough pickaxe.
    tick-floor-millis: 55

    # The most deliberate pickaxe swings per second a player can physically ask
    # the server for.
    #
    # Only real swings are counted - blocks an area enchant clears never reach
    # this - so the ceiling is a property of the server, not of the pickaxe. A
    # block breaks on a tick boundary, so 20 a second is everything the server
    # can hand out; the default leaves headroom above that so only a rate the
    # server could not have produced is reported.
    #
    # Unlike the baselines below, this is not a guess about your players and
    # calibration does not touch it. Lower it only if you have a reason to cap
    # swings below what the server allows.
    max-breaks-per-second: 25.0

    # WHAT AN ORDINARY PLAYER LOOKS LIKE
    #
    # Every signal scores what it measured against one of these, and staff are
    # shown the same number as "ordinary players: ...". A player at or beyond
    # the baseline contributes nothing to the score; the closer to zero they
    # are, the more machine-like they read.
    #
    # These ship as sensible starting points, not as truths about your server.
    # Run /xwarden calibrate to measure them from your own players - a server
    # of 1x1 tunnel miners and a server of open-pit miners do not look alike,
    # and a baseline guessed for the wrong one is how a real player gets flagged.
    baselines:
      # Timing variation: how much the gap between breaks wanders. The single
      # strongest signal. FALSE POSITIVE: a player on a very stable connection
      # mining one uniform block type wanders less than most.
      timing-variation: 0.25
      # Timing spread: how much of a natural rhythm the intervals cover.
      # FALSE POSITIVE: short sessions on one block type look narrow.
      timing-spread: 0.70
      # Camera movement, in degrees per break. FALSE POSITIVE: a player mining a
      # 1x1 tunnel barely turns, which is why the variety baseline below carries
      # the signal rather than this one alone.
      camera-degrees: 2.0
      # Camera variety: how much the turns differ from each other. Near zero is
      # the hardware-autoclicker tell - the same small turn, over and over.
      camera-variety: 0.50
      # Minutes of unbroken mining with no chat, command, inventory or teleport
      # before this reads as fully machine-like. FALSE POSITIVE: a focused
      # player on a grind server. Raise it if an hour of silence is ordinary.
      session-minutes: 60.0
      # Blocks of movement between breaks below which the player counts as
      # standing perfectly still.
      movement-blocks: 0.01

    # /xwarden calibrate measures the baselines above from your own players.
    #
    # Start it, let people mine normally for a day, then read what it found and
    # decide. It never changes anything on its own, it ignores anyone exempt or
    # already scoring above the threshold, and it refuses to suggest anything
    # until enough different people have contributed - a baseline taken from
    # three players is the same guess you started with.
    calibration:
      min-players: 5
      min-samples: 200
    # How often every tracked player is scored. This runs off the main thread.
    analysis-interval-seconds: 30
    # A gap this long between breaks ends the session and clears the samples.
    idle-reset-seconds: 300

    # The composite score, 0 to 100, that counts as suspicious.
    #
    # For scale, against the reference sessions in the test suite: an ordinary
    # player scores 4, a macro that adds random jitter inside a fixed loop
    # scores 69, and a flat autoclicker scores 100. The gap is deliberately
    # wide - every signal is measured against what an ordinary player produces,
    # so a person contributes almost nothing to it.
    score-threshold: 60
    # And how many consecutive windows it has to stay there before anything is
    # reported. One window is never enough: a person mining one flat stretch is a
    # person concentrating. A machine is still flat three windows later.
    sustained-windows: 3
    # How often break speed and the per-signal checks below report again while
    # the player is still doing it, counted in analysis windows. 1 means every
    # window - at analysis-interval-seconds: 30 that is a row every 30 seconds
    # for as long as it continues.
    #
    # Break speed used to be reported once per mining session, and a session
    # only ends after idle-reset-seconds without a break, so somebody who simply
    # kept going was reported once however long they carried on.
    #
    # You should not need to raise this to keep your inbox readable: the flag
    # list groups every repeat of the same check on the same player into one row
    # carrying the count, and staff chat is throttled per module by
    # alerts.throttle-seconds. Raise it only if you want fewer rows recorded,
    # knowing that fewer repeats also means the violation level climbs slower.
    #
    # Note that these checks ship with vl-decay: 0.0, so every repeat adds to the
    # violation level permanently - which is what makes escalating their action
    # beyond ALERT possible, and worth thinking about before you do.
    repeat-windows: 1

    periodicity:
      min-lag: 2
      max-lag: 40

    # What each signal contributes. These are relative - they do not need to sum
    # to one. Set a weight to 0 to switch that signal off entirely.
    signal-weights:
      # Timing variation. The strongest single signal: macros collapse toward zero.
      interval-variance: 0.30
      # How spread out the timings are. Catches regularity that survives jitter.
      interval-entropy: 0.15
      # Whether the timing pattern repeats on a fixed loop. This is what catches
      # a macro that randomises within a cycle.
      periodicity: 0.20
      # Whether the camera ever moves. A person drifts; a clicker on a static
      # screen does not. Weighted heavily because it is the best hardware signal.
      rotation-entropy: 0.20
      # How long the player has mined with no chat, command, inventory or teleport.
      session-continuity: 0.10
      # Whether movement between breaks repeats. Catches the jump loop and the
      # water bucket, which defeat any check that only asks whether they moved.
      movement-pattern: 0.05
      # Break speed against max-breaks-per-second. Zero on purpose: a rate the
      # server cannot deliver is a fact rather than a hint, so it is reported as
      # its own check below instead of being averaged into a score. Give it a
      # weight only if you want it to count towards the composite as well.
      break-speed: 0.0

    # WHEN ONE SIGNAL IS ENOUGH ON ITS OWN
    #
    # The composite above is an average, so one signal at its maximum only
    # carries its own weight - the heaviest is 0.30, which is 30 of 100 against
    # a threshold of 60. A player who is perfectly machine-like on one measure
    # and ordinary on the rest can never reach it.
    #
    # A signal listed here raises its own flag once it holds at or above this
    # value for sustained-windows in a row, whatever the composite says, and
    # again every repeat-windows for as long as it is still being held. Set one
    # to 0 to switch it off.
    #
    # Only the two signals that are decisive alone are listed. Camera movement,
    # session continuity and movement repetition are deliberately absent: each
    # describes a 1x1 tunnel miner or a focused grinder as readily as a macro,
    # and they are only worth acting on when the other signals agree - which is
    # what the composite is for.
    signal-alerts:
      # Every gap between breaks the same length. Above 0.95 means the timing
      # barely varies at all, which a hand does not do over hundreds of blocks.
      interval-variance: 0.95
      # A fixed cycle in the timing. This is the macro that randomises inside a
      # loop, and the loop is the tell.
      periodicity: 0.90

    challenge:
      # On a sustained high score, send the player a code they have to type back.
      # Not answering is strong evidence and requires no accusation.
      #
      # Off by default because some owners would rather never interrupt a paying
      # player, and because a player genuinely away from the keyboard fails it
      # exactly like a macro does.
      enabled: false
      score-trigger: 85
      timeout-seconds: 60
      cooldown-minutes: 30

    checks:

      # The composite score, sustained across several windows.
      #
      # FALSE POSITIVE: a player using a mine that resets on a fixed timer, in a
      # long session, holding the mouse button down. Look at the per-signal
      # breakdown in /xwarden report before doing anything - if only the timing
      # signals are high and the camera moved, it is a person.
      composite-score:
        enabled: true
        sensitivity: 1.0
        min-samples: 60
        action: ALERT
        # A report is worth confidence/100, and one only lands every third
        # window. Decay is per minute, so the old 3.0 against 0.5 drained
        # faster than sustained flagging could fill it: below 83 confidence it
        # could never be reached at all. Four reports now alert, about six
        # minutes of unbroken machine-like mining.
        vl-threshold: 2.0
        vl-decay: 0.1
        # Blank uses the shared alerts.sound.name.
        sound: ""
        commands: []

      # A verification prompt that went unanswered.
      #
      # FALSE POSITIVE: somebody who walked away mid-session, or whose chat is
      # hidden. Never make this a ban.
      challenge-failed:
        enabled: true
        sensitivity: 1.0
        min-samples: 1
        action: ALERT
        # An unanswered prompt is worth 0.85 and the next one cannot come for
        # challenge.cooldown-minutes, so anything above that never accumulated
        # and staff were never told. One ignored prompt alerts; it is an alert,
        # not a punishment, and a moderator still decides.
        vl-threshold: 0.8
        vl-decay: 0.0
        # Blank uses the shared alerts.sound.name.
        sound: ""

      # Swinging faster than max-breaks-per-second above.
      #
      # Reported again every repeat-windows for as long as the rate stays over
      # the ceiling.
      #
      # FALSE POSITIVE: a server running far below 20 TPS can deliver breaks in
      # bursts once it catches up. Check your TPS before acting on this one.
      break-speed:
        enabled: true
        sensitivity: 1.0
        min-samples: 1
        action: ALERT
        # Reported once per mining session and worth 0.95, so a threshold of
        # 2.0 needed three sessions - while decay cleared the level during the
        # five idle minutes a new session needs. It could never fire. The first
        # proven reading alerts, in the same way a duplicated item does.
        vl-threshold: 0.9
        vl-decay: 0.0
        # Blank uses the shared alerts.sound.name.
        sound: ""

      # Timing variation on its own, at signal-alerts.interval-variance.
      #
      # FALSE POSITIVE: a very stable connection mining one uniform block type
      # varies less than most. Read the camera and movement rows in
      # /xwarden report before acting - if those look human, this is a person
      # on a good connection.
      interval-variance:
        enabled: true
        sensitivity: 1.0
        min-samples: 60
        action: ALERT
        vl-threshold: 0.9
        vl-decay: 0.0
        commands: []
        sound: ""

      # A repeating cycle in the timing, at signal-alerts.periodicity.
      #
      # FALSE POSITIVE: a mine that resets on a fixed timer gives everybody
      # mining it a cycle of the same length. Check whether several players
      # share the same lag before acting on one of them.
      periodicity:
        enabled: true
        sensitivity: 1.0
        min-samples: 60
        action: ALERT
        vl-threshold: 0.9
        vl-decay: 0.0
        commands: []
        sound: ""

  # ---------------------------------------------------------------------------
  #  CLIENT - what did they join with?
  # ---------------------------------------------------------------------------
  #  Three things are read as a player joins, each weaker than the next:
  #
  #    the brand      what the client calls itself. Spoofable either way.
  #    the channels   the plugin channels it registers. Launchers and mods that
  #                   talk to the server announce themselves here. Spoofable.
  #    the probe      Warden briefly shows the joining player a sign whose lines
  #                   are a keybind or a translation key that only one cheat mod
  #                   defines. A client with that mod resolves it; every other
  #                   client echoes the raw id back. That is the client's own
  #                   answer, and it is what the KICK below rests on.
  #
  #  Which ids and patterns mean what is in client-signatures.yml, and every
  #  entry there says where it was verified. Bedrock players through Geyser are
  #  never probed. The probe puts a real sign under the player's feet for up
  #  to five seconds and puts the block back; the player sees the sign screen
  #  for about one frame.
  # ---------------------------------------------------------------------------
  client:
    enabled: true
    # Ticks after joining before the brand and channels are read. The brand
    # arrives a moment after the join itself.
    brand-read-delay-ticks: 40
    # Never probe or report a Bedrock player. Geyser cannot resolve a keybind on
    # a sign, so a probe would only ever be inconclusive, and it would show them
    # a form.
    exempt-bedrock: true
    probe:
      enabled: true
      delay-ticks: 60
      # How long to wait for the client's answer before the sign is put back and
      # the round counts as inconclusive.
      timeout-ticks: 100
      # Three signature ids per round. Two rounds cover six signatures.
      max-rounds: 2
      # An inconclusive round (the control line came back unchanged - the
      # client never resolved anything) is tried again this many times.
      retries: 1
      retry-delay-ticks: 200
      # Close the sign screen the instant it opens, so the player sees at most
      # one frame of it. Off leaves it until they press Done or Escape.
      force-close: true
      # below   a solid block 3-6 blocks under the player (out of sight)
      # both    and, failing that, the air 4-7 blocks above (briefly visible)
      placement: below
      # A player concluded once is not probed again on a relog inside this window.
      cooldown-minutes: 10

    checks:
      # A client that matched a cheat signature.
      #
      # NOT A FALSE POSITIVE, but worth knowing: this ships KICK, the only check
      # besides duplicate-item allowed to act on its own, because a probe hit is
      # the client itself resolving a key that only a cheat mod registers - a
      # statement, not a measurement. A brand or channel match is weaker (90 and
      # 95 confidence against the probe's 100) and can be wrong if a pattern in
      # client-signatures.yml matches a harmless mod: that is the only way this
      # check is ever wrong, and the fix is the pattern. To auto-ban instead,
      # set action: PUNISH and name a preset from warden-punishments.yml.
      cheat-client:
        enabled: true
        sensitivity: 1.0
        min-samples: 1
        action: KICK
        # preset: cheat-client
        vl-threshold: 0.9
        vl-decay: 0.0
        # Blank uses the shared alerts.sound.name.
        sound: ""
        commands: []

      # A modded client that announced nothing cheat-specific: Fabric, Forge, a
      # mod that registered its channels. Recorded so a staff member reading a
      # report knows, and nothing more.
      #
      # FALSE POSITIVE: none worth the name - it says what the client said.
      # Raise the action only on a server that forbids mods outright.
      modded-client:
        enabled: true
        sensitivity: 1.0
        min-samples: 1
        action: LOG
        vl-threshold: 0.9
        vl-decay: 0.0
        # Blank uses the shared alerts.sound.name.
        sound: ""

  # ---------------------------------------------------------------------------
  #  NETWORK - linked accounts
  # ---------------------------------------------------------------------------
  #  This module has no punishment setting, and there is no way to add one. There
  #  is no responsible way to ban somebody for who else uses their connection, so
  #  the code to do it does not exist. It produces a report for a person to read.
  # ---------------------------------------------------------------------------
  network:
    enabled: true

    # Addresses are never stored. What is stored is a hash of the address under a
    # salt generated on first start and kept in network-salt.txt, which never
    # leaves this server. Set this to false to store nothing at all - the other
    # signals still work, just less well.
    store-address-hash: true
    retention-days: 30
    # The full correlation pass runs on this timer. On top of it, a join runs one
    # pass a few seconds later (analyse-on-join below), so a link involving
    # somebody who just connected shows up straight away instead of at the next
    # interval.
    analysis-interval-minutes: 30
    # Run a pass shortly after each join. Coalesced, so a wave of joins is one
    # pass, not one each. Turn it off to rely on the timer alone.
    analyse-on-join: true

    # Pairs below this confidence are not stored or shown.
    min-confidence: 60
    # Two accounts joining within this many seconds of each other counts as
    # joining together.
    join-correlation-seconds: 120

    # When two accounts count as mining alike enough to be the same hands.
    #
    # Both have to be scoring above min-score first. Without that floor, two
    # ordinary players who both score near zero "match" each other - and every
    # other ordinary player on the server, which is everybody.
    automation-match:
      min-score: 40
      max-difference: 5

    # What each signal contributes to the confidence figure. Confidence is the
    # matched weight as a share of the total, so with these five summing to 1 a
    # weight reads directly as a percentage.
    signal-weights:
      # Same connection. On its own this is exactly min-confidence, so two
      # accounts from one address are listed - a Java and a Bedrock account of
      # the same person, say - and anything else that matches lifts them above
      # the pairs that only share a router. A VPN defeats it and a shared house
      # produces it honestly, which is exactly why this is never acted on.
      address: 0.60
      join-timing: 0.10
      payments: 0.15
      locale: 0.05
      automation: 0.10

    checks:
      # Pairs above min-confidence are written into /xwarden flags so there is a
      # record with a date on it, and so the guidance panel can be read.
      #
      # There is deliberately no action, no vl-threshold and no vl-decay here.
      # This module reports through a path that cannot act on anybody, so there
      # is no setting to raise: adding one would mean banning somebody for who
      # else uses their connection.
      linked-accounts:
        enabled: true
        sensitivity: 1.0
        # Blank uses the shared alerts.sound.name.
        sound: ""

Clone this wiki locally