Repository navigation
Dashboard
A web panel for X-Warden. It runs inside your server — there is nothing else to host — and gives you the whole of what X-Warden knows from a browser.
It is an addon, not a plugin. Requires X-Warden 1.1.0 or newer; on an older one it says so and does not start.
- Drop
X-Warden-Dashboard.jarintoplugins/X-Warden/addons/. - Start the server once. It creates
plugins/X-Warden/addons/Dashboard/config.ymland does not start the panel: the superuser password in that file is stillchangeme, and a panel that can freeze players and reverse balances is not something to serve with a default password. The console says so in a box. - Set
superuser.passwordto something only you know, then restart or/xwarden reload. - Open
http://127.0.0.1:8095from the machine itself — the panel binds to loopback by default, so it is never exposed by accident — and sign in asadminwith the password you chose. To reach it from elsewhere, see Exposing it safely.
/xwarden addons lists it, and can stop or start it without a restart. The panel's own Addons page
does the same for every addon — start, stop, unload and load, which is a whole
upgrade without a restart from the browser. The one
exception is the panel itself: it cannot stop or unload itself, because the request would succeed,
the server would stop, and the reply would never arrive. Use /xwarden addons in game for that.
plugins/X-Warden/addons/Dashboard/config.yml:
| Setting | Default | What it does |
|---|---|---|
port |
8095 |
Port the panel listens on. Not 8085 or 8090, which the X-Prison and X-PrivateMines panels take - a prison server may well be running both. If it is still occupied the panel names the port on startup rather than failing quietly. |
host |
127.0.0.1 |
Interface to bind. Loopback by default; "" is the same; 0.0.0.0 is every interface — see below. |
superuser.username / .password
|
admin / changeme
|
Created on first start, only while no accounts exist, and stored as a bcrypt hash. The panel refuses to start while the password is still changeme.
|
jwt.secret |
"" |
Leave blank; a random secret is generated on first start and written back. |
jwt.expiry-hours |
24 |
How long a sign-in lasts. |
cors.allowed-origins |
"*" |
Restrict to your panel's domain if you serve it from one. |
demo.enabled |
false |
A read-only account whose credentials are shown on the login page. |
port and host need a restart. Everything else applies on the next sign-in.
This login can freeze players, reverse balances and rewrite warden.yml. Treat it like an admin
console, because it is one.
Private only. Set host: 127.0.0.1 (or a LAN address) and reach it over SSH or a VPN. Nothing
else to do.
Public, behind HTTPS. Bind it to localhost and put a reverse proxy in front:
server {
listen 443 ssl;
server_name warden.example.com;
ssl_certificate /etc/letsencrypt/live/warden.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/warden.example.com/privkey.pem;
location / {
proxy_pass http://127.0.0.1:8095;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# The live feed is server-sent events; it must not be buffered.
proxy_buffering off;
proxy_read_timeout 24h;
}
}Then set cors.allowed-origins: "https://warden.example.com".
What you should not do is leave it on every interface, over plain HTTP, with the default password. Every sign-in then crosses the internet in the clear.
| Admin | everything, including staff accounts |
| Staff | whatever permissions you grant, page by page |
| Demo | read-only, and blocked from every write at the server rather than merely hidden in the browser |
A demo account sees the shape of the panel and none of the people in it. Almost everything X-Warden holds names a real player, and a demo login is by definition reachable by strangers.
Two-factor authentication is available per account, with recovery codes. Deleting an account, or changing its role, password or permissions, signs it out immediately. Everything anyone does through the panel is recorded in the audit log.
Granted individually to staff accounts. Reading a page never implies acting on it: the ones that change something are their own grants.
FLAGS_MANAGE |
mark findings handled |
FREEZE / WATCH
|
hold a player still; watch their payouts live |
PUNISH |
apply a punishment preset, and lift one. The one grant that reaches outside X-Warden - a ban is a ban |
NOTES |
write a staff note on a player |
PLAYERS_MANAGE |
clear violation levels, re-read a client, force a payout audit |
ROLLBACK_APPLY |
reverse balances. Previewing needs only ECONOMY_VIEW — working out what a reversal would do changes nothing, and refusing it would push staff into applying blind |
INTEGRITY_SCAN |
start a sweep of every inventory on the server |
INTEGRITY_MANAGE |
hand a quarantined item back; confirm, reject or forget a template |
AUTOMATION_CALIBRATE |
run calibration, apply baselines, send a player a challenge |
SETTINGS_MANAGE / MODULES_MANAGE
|
change the configuration files, switch modules and checks, change the preset |
VULNERABILITIES_VIEW |
read which installed plugins have a known bug - it names plugins and versions |
LOGS_VIEW |
read X-Warden's log, which carries player names and file paths |
AUDIT_LOG |
read what other staff have done here |
There is no permission for acting on linked accounts, because there is no action to grant. See Linked Accounts.
| Page | |
|---|---|
| Overview | server state, the economy's capabilities, a live feed, and anything that needs attention: checks that can never fire, vulnerable plugins, nobody hearing alerts |
| Findings | grouped per player and check, one row per ongoing problem; evidence with every reading next to what normal looks like |
| Players | everyone X-Warden has written down, with online, frozen and watched filters |
| Player report | four tabs. Summary: automation signals, findings, violation levels per check, linked accounts. Money: the last hour's ledger, where one payout came from stage by stage, mining income by hour, rollback. Enforcement: punishments with lift, staff notes, quarantined copies with hand-back, what other anticheats said. Client & sessions: the brand, channels, probe result and verdict, and recent sessions |
| Automation | live scores with their signals, the challenge, calibration |
| Item integrity | duplicates and where each copy sits; quarantine; templates waiting for a verdict, with confirm, reject and forget |
| Linked accounts | correlated pairs with the named signals. No action, by design |
| Economy | recent transactions, top earners, rollback for any player |
| Clients | what everyone online joined with and what X-Warden concluded |
| Modules / Checks / Settings | what each check does, whether it can reach its action, and all seven configuration files edited a line at a time |
| Vulnerabilities | installed plugins with a known bug, matched by version, with the source |
| Addons / Logs / Audit log | start, stop, load and unload addons; X-Warden's log files including the archive; what people did here |
Three commands stay in game: /xwarden alerts is a per-staff chat toggle, /xwarden unstamp
needs the item in hand, and /xwarden webhook posts a sample to Discord.
The panel edits the one line a setting lives on and leaves every other byte of the file alone —
warden.yml is mostly comments explaining what each default is for, and they are worth keeping.
Anything it cannot place beyond doubt (a list, a nested block, a key that appears twice) it refuses
rather than guesses at, and says which kind of doubt it was.
Every setting shows which of the three layers answered for it: your file, the preset, or the default in the jar. That matters more than it sounds — an owner value identical to the bundled default defers to the preset, so writing the default back is not the same as resetting it. The panel flags those, and tells you what the value actually reads as after the write.
Lists and nested blocks stay read-only. Edit those in the file directly and reload; the Settings page
can show any of the seven files whole for exactly that. A change to a file other than warden.yml
takes effect on the next reload.
Reversing somebody's balance is a two-step action here, exactly as /xwarden rollback is in game:
preview first, then apply. The preview expires after two minutes, because the numbers move as the
player keeps earning and applying a stale plan takes an amount off somebody that no longer matches
anything.
The plan says which part came from exact minute-resolution memory and which from hourly summaries. A figure reversed to the hour is not the same claim as one reversed to the payout, and the panel does not pretend otherwise.
- It never recommends a punishment. Guidance says what to investigate; you pick the preset, and the ladder decides the step. A template verdict is yours too: the panel shows what is paused and never decides.
- It never shows a reading without what normal looks like. "0.4% variation" means nothing on its own.
- An absent automation score is not a zero. It means too little mining has been recorded to say anything, and the panel says so.
-
It cannot switch itself off. The request would succeed, the server would stop, and the reply
would never arrive. Use
/xwarden addons disable Dashboardin game.
Requires JDK 17 and Maven; Node is downloaded by the build. Build X-WardenAPI first.
mvn clean package-Dfrontend.skip=true is a compile-time shortcut only — package refuses to produce a jar without
the UI, because such a jar starts, answers /api, and 404s every page.