Repository navigation
Configuration
Seven files in plugins/X-Warden/, all reloadable with /xwarden reload. Every one of them is
reproduced on this wiki, comments and all, and every header links back here.
| File | What it holds |
|---|---|
warden.yml |
modules, checks, thresholds, actions, storage, alerts, webhook |
warden-gui.yml |
every staff menu — items, slots, materials, lore, and the text: lines each menu writes itself |
warden-messages.yml |
every line staff or players see, including the guidance text and the words a reading is shown with |
warden-punishments.yml |
the punishment presets and their ladders — see Punishments |
client-signatures.yml |
what marks a client as a cheat, a mod or harmless — see Client Detection |
vulnerabilities.yml |
plugin versions with a known exploit — see Plugin Vulnerabilities |
anticheats.yml |
the other anticheats /xwarden sus listens to — see External Anticheats
|
Every word staff or players see is in one of these files. The menus keep their lore lines under a
text: block per menu, with the placeholders each line can use named beside it; the verdict words
(machine-like, unusual, borderline, normal), their colours, the score bands and what stands
in for a name X-Warden never learned are under verdict, verdict-colour, composite-verdict and
signal-colour in warden-messages.yml.
Each links to the shipped file in full, so you can read a setting and its notes without opening the jar.
Every file is heavily commented, and every threshold carries a written note saying what a false positive on that check looks like. That note is the part owners actually need.
/xwarden preset balanced | lenient | strict
A preset is a file in plugins/X-Warden/presets/. The three below are written there on the first
start; any .yml you put in that folder is a preset from the next reload — edit one, copy one under
a new name to keep your own, or drop in one you bought. Delete one of the three and it is restored
on the next start.
| Preset | For |
|---|---|
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 another preset has been quiet on your own server |
You can read them here too: balanced · lenient · strict.
A preset supplies a value only where you have not changed that key yourself — set something by
hand and it stays yours, through every preset switch and every update. No preset punishes: none
of them sets an action, switches a check off, or names a key warden.yml does not have, and a
test fails the build if one does. Raising a check's action is always an edit you make in
warden.yml.
Three more presets are sold separately. Each is one file: drop it into presets/ and run
/xwarden preset <name>.
| Pack | For |
|---|---|
OP Prison (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: a far higher multiplier ceiling, wider income tolerances, a bigger crowd before the peer checks speak, and a composite score that has to hold longer before it is reported |
Casual Prison (casual-prison) |
human-speed mining, multipliers in the tens, twenty people online is a good night. The peer checks work with a smaller crowd, the anomaly window is longer to match slower mines, income tolerances are tighter than OP, and a rank-up that doubles income is not a spike |
Economy Server (economy-server) |
survival, skyblock, factions, towns — money and no prison, on X-Warden alone or beside Vault. Income comes from a shop, a job or a farm rather than a pickaxe, so income-per-block and the lifetime spike are far more tolerant (a hoard cashed in is honest), the anomaly window is longer because money moves in lumps, and the peer checks work with a small crowd. The 1x1 strip-mining tunnel is the ordinary case, so the camera carries less of the mining score and timing more |
All three are held to the same rules as the free ones — thresholds only, never an action — and the same build guard proves every check in them can reach its alert. Every value in each pack carries a comment saying why it is what it is.
1.0 is the preset's own value. Above 1.0 is more forgiving, below is stricter. It scales the
line a reading has to cross — the composite score threshold, the multiplier ceiling, the multiple of
the median, the multiple of everything earned before — and where a check has no line to move (a
payment ring, a break rate the server cannot produce, item growth between sweeps) it scales the
confidence of the finding instead. Every check obeys the same direction; the automation checks used
to divide by it, which made lenient flag the composite sooner than balanced.
Four things change warden.yml without you opening it: /xwarden preset, applying a
calibration, the dashboard's settings page, and an upgrade.
All four change the one line the setting lives on and leave every other byte alone — an upgrade
adds each new key as a block with its comment at the end of its section, and writes
config-version so its one-off corrections run once. Most of this
file is the comments explaining what a false positive on each check looks like, and they are the part
worth keeping. The first change of each session copies the file into plugins/X-Warden/backups/
first.
Anything that cannot be placed beyond doubt is refused rather than guessed at, and X-Warden says
which kind of doubt it was — a list, a nested block, a value spanning several lines, or a key that
appears twice in the same place. Those you edit by hand and then run /xwarden reload.
One consequence worth knowing: writing a value back that matches the shipped default is not the same as resetting it. A key you have not changed defers to the preset, so a setting that reads as the default in your file will still take the preset's value. The dashboard flags this before you save and tells you what the setting will actually read as afterwards.
Every check has the same shape:
duplicate-item:
enabled: true
sensitivity: 1.0 # BELOW 1.0 is stricter, ABOVE is more forgiving
min-samples: 1 # how much data before it may have an opinion
action: ALERT
vl-threshold: 0.9 # violation level before the action fires
vl-decay: 0.0 # how much drains away per minute
commands: [] # for action: COMMANDChange sensitivity before you change anything else. It scales the whole check without you
having to understand its internals.
A finding adds confidence / 100 to the violation level, so vl-threshold: 3.0 needs roughly three
confident findings before the action fires. Until then the check only logs.
vl-decayis per minute, and that is the trap. A check can only report as often as the thing that runs it — the peer economy checks every five minutes, an integrity sweep every fifteen, a mining window every thirty seconds. If more decays away between two findings than one finding is worth, the level has a ceiling; and if that ceiling sits belowvl-threshold, the check detects exactly what it was built for and then downgrades itself to a log line, for ever.Every shipped check is verified against this by a test that fails the build, on every preset. If you raise a
vl-thresholdor avl-decayyourself, do the same arithmetic: one finding is worth at most 0.95, sovl-decay × minutes-between-findingsmust stay below that.A
vl-decay: 0.0check never forgets, which is what you want for anything that reports proof rather than a trend.
Beyond the per-check settings, five numbers decide how the peer checks behave. All are commented in
warden.yml with what a false positive on them looks like.
| Setting | What it decides |
|---|---|
economy.anomaly.window-minutes |
how much history the peer checks measure a player over |
economy.anomaly.interval-seconds |
how often they run |
economy.anomaly.max-payment-ring |
the longest laundering chain that is still detected |
economy.shop-region-factor-limit |
how far above the global price a sell region may pay before startup says so |
network.automation-match.min-score |
how machine-like two accounts must both be before "identical mining fingerprint" counts |
And in the automation module, tick-floor-millis decides below which gap the server is considered
to be setting the pace rather than the player. See Automation.
/xwarden reload re-reads all seven files and restarts the modules. A reload can fail: if a file
will not parse, X-Warden says so and keeps the settings already in force rather than silently
reverting everything to defaults.
Three things need a restart, and X-Warden warns you rather than pretending otherwise:
-
storage.*— the database is opened once at startup modules.economy.ledger.memory-window-*modules.economy.vault.poll-seconds
Reloading also restarts the modules, which clears in-flight automation sampling and the in-memory income window. That is harmless, but a rollback run immediately afterwards is accurate to the hour rather than to the payout.
storage:
type: h2 # h2 | mysql | auto
file: warden # -> plugins/X-Warden/warden.mv.db
mysql:
host: localhost
port: 3306
database: warden
user: root
password: ""h2, the default, keeps X-Warden's data in its own file, so it is yours to back up or move on its
own and X-Warden never writes into another plugin's tables. auto uses X-Prison's database when
the core is installed, which keeps one database to back up instead of two, and its own H2 file
otherwise. A file from 1.0.0 that says auto keeps saying it; see Upgrading.
mysql needs one server per database: ids are handed out in memory from the highest one seen at
start, so two servers sharing a schema would refuse each other's rows. Indexes are created on the
first start and the second start is silent about them.
alerts:
permission: xwarden.alerts
min-confidence: 40 # below this, recorded but never sent to chat
console-echo: true
throttle-seconds: 60 # per player, per MODULE - see below
sound:
enabled: true
name: BLOCK_BELL_USE
volume: 1.0
pitch: 1.0 # 0.5 to 2.0throttle-seconds is keyed per player per module, not per check. A live macro trips
break-speed, interval-variance and periodicity every analysis window and the composite on top
of that - four checks, all 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 arrive as
one, and the next alert that gets through says how many were held back.
A duplicated item or a money finding on that same player is a different module and still cuts straight through, so proof is never held back behind statistics. Bug notices are never throttled.
The findings themselves are all still recorded either way, and the flag list groups the repeats into a single row carrying the count.
Findings below min-confidence are still recorded and still visible in /xwarden flags.
Every check plays this one sound, so staff learn a single cue and know a finding landed without reading chat first. A check that should stand out from the rest sets its own in its own block:
modules:
integrity:
checks:
duplicate-item:
sound: BLOCK_ANVIL_LANDA blank sound: — which is what every check ships with — means it uses the shared one. An unknown
sound name is reported once in the console and the alert is still sent, just silently.
Warden writes its own log to plugins/X-Warden/logs/, so its history is not buried in the
server-wide latest.log.
logs/
latest.log the session running right now
archive/ rolled copies, named by the day they cover
errors/errors.log warnings and errors only
Everything is captured — sweep results, the staff audit trail (who rolled back a balance, who
cleared a violation level), bug notices and the startup report. errors/errors.log is the file to
send with a support request.
logging:
enabled: true
level: INFO # DEBUG, INFO, WARN, ERROR or OFF
max-file-kb: 4096 # rolls at this size, or when the day turns
retention-days: 14 # rolled files older than this are deleted at startupWriting happens off the server thread. If the queue ever fills, lines are dropped rather than made to wait — a log is not worth a stall.
Findings posted to Discord. Leave url empty to keep it off. This is the only outbound connection
X-Warden itself ever makes.
The url must be an https:// address — anything else is refused rather than sent in the clear, and
X-Warden says so in the console once rather than failing in silence. Any reply of HTTP 300 or above
is logged with its status code, so a webhook you deleted in Discord does not fail invisibly.
| Setting | Default | What it does |
|---|---|---|
enabled / url
|
false / empty |
both are needed before anything is sent |
username / avatar-url
|
empty | the name and picture the post appears under. Empty keeps whatever the webhook was created with in Discord |
min-confidence |
80 |
findings below this are still recorded and still in /xwarden flags, just not posted |
min-action |
ALERT |
the least serious action worth posting. LOG posts everything recorded, which on a busy server is a great deal |
modules |
[] |
which modules to post. Empty means all of them |
throttle-seconds |
30 |
repeats about the same player and the same check are held back for this long |
/xwarden webhook <player> posts a sample finding about that player, skipping the filters and the
throttle, and tells you what Discord answered — so the layout below can be seen in the channel
without waiting for a real one.
Every text under embed takes the same placeholders: %player% %uuid% %module% %check% %scope% %confidence% %vl% %action% %severity% %id% %time% %summary%. Any part left "" is left out of the
embed rather than sent blank.
| Setting | Default | What it does |
|---|---|---|
embed.title |
X-Warden flag: %check% |
|
embed.description |
player, module, confidence, action, then %summary%
|
Discord markdown works here |
embed.url |
empty | where the title links to — a panel, a forum thread |
embed.colour |
15158332 |
decimal, not hex |
embed.timestamp |
true |
when the finding was made, shown in the reader's own timezone |
embed.thumbnail |
https://mc-heads.net/avatar/%uuid%/64 |
the player's head, top right |
embed.image |
empty | a large picture under the text — https://mc-heads.net/body/%uuid%/128 for the whole skin |
embed.author.name / .icon / .url
|
%player% / a small head / empty |
the small line above the title |
embed.footer.text / .icon
|
%severity% - finding #%id% / empty |
the small line under everything |
embed.include-readings |
true |
attach the measurements themselves, each next to what an ordinary player produces |
embed.readings-inline |
true |
side by side, or one under another |
embed.readings-verdict |
%value% (%verdict%) |
how each reading is written |
embed.readings-typical |
ordinary players: %typical% |
the line under it, when the check knows what ordinary looks like |
The player's head costs your server nothing. Discord fetches the picture from the address in
thumbnail, not from you, so 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.
The throttle is not optional in spirit. 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 only if you know the volume you are inviting.
webhook:
digest:
enabled: false
interval-minutes: 1440
title: "X-Warden: the last %hours%h"
description: "**Findings:** %findings%\n**Players:** %players%\n%busiest%"
busiest: "**Busiest check:** %check% (%count%)"
colour: 15158332%hours%, %findings%, %players% and %busiest% work in the title and the description;
%busiest% becomes the busiest line — %check% and %count% — or nothing when nothing was found.
One summary post covering everything found since the last one — for owners who want to know the server is being watched without a message per finding. It is separate from the per-finding posts, not a replacement: with both on you get each high-severity flag as it happens and the roll-up as well.
Two things differ from the posts above. A window in which nothing was found posts nothing — a
daily zero teaches people to ignore the channel. And the digest counts everything recorded, ignoring
min-confidence and min-action, so a server where nothing clears the bar still gets a summary with
real numbers in it.
The interval is a floor of 15 minutes and is measured from when the plugin started, so the first one lands an interval after startup rather than shortly after.
Two more embeds share the webhook, each its own block under webhook: with a title, a description
and a colour, and each switched off with enabled: false:
webhook:
punishments:
enabled: true
title: "Punishment: %punishment%"
description: "**Player:** %player%\n**By:** %staff%\n**Reason:** %reason%\n**Preset:** %preset% (step %step%)"
colour: 10181046
vulnerabilities:
enabled: true
title: "Vulnerable plugin: %plugin% %version%"
description: "**%title%**\nSeverity: %severity%\nFixed in: %fixed%\n%source%"
colour: 15105570A punishment posts once per punishment staff apply (or a check applies through a preset), with
%player%, %uuid%, %punishment%, %type%, %duration%, %reason%, %staff%, %preset%,
%step%, %id% and %finding%. A vulnerability posts once per start for every installed plugin
whose version is listed, with %plugin%, %version%, %title%, %severity%, %fixed% and
%source%. Both show the player's head where there is a player.
If Discord answers with a rate limit, X-Warden says so in the console — the url is fine and posting
resumes on its own; raise min-action or switch the digest on if it keeps happening.