Skip to content

Upgrading

Jan Kluka edited this page Sep 12, 2026 · 1 revision

Upgrading

From 1.0.0 to 1.1.0

Replace the jar and start the server. Nothing else is required. This page says exactly what the first start does to your files, so nothing in the console is a surprise.

What is kept

Everything you set. Your warden.yml, warden-gui.yml and warden-messages.yml are read as they are; your database, your network-salt.txt and your findings carry across; and a Levels table is added to the database with CREATE TABLE IF NOT EXISTS, which never touches the tables you have.

What the first start writes

Before it changes a file, X-Warden copies it into plugins/X-Warden/backups/ with a timestamp in the name. Then:

  1. New settings go into warden.yml — one block per key, with the comment that explains it, at the end of the section it belongs to. The rest of the file is left byte for byte as you had it: an upgrade no longer re-emits the whole document through a YAML writer, which is what used to re-indent every comment a little more each version. The console lists what was added:

    warden.yml gained 66 new settings from this version, each with its comment: config-version, actions, ...
    
  2. Nine threshold pairings 1.0.0 shipped are corrected. Decay is charged per minute, and the pairings below drained faster than the check could report again, so each of those checks detected what it was built for and told nobody, for ever. If your file still holds exactly the old pairing it is rewritten to what this version ships — one line each, and the console names every change:

    warden.yml upgrade: income-per-block: vl-threshold 4.0 -> 2.0, vl-decay 0.4 -> 0.05 - the old pairing drained faster than the check could report, so it could never reach its action.
    
    Check Old pairing New pairing
    income-per-block 4.0 / 0.4 2.0 / 0.05
    balance-velocity 4.0 / 0.4 2.0 / 0.05
    circular-payment 3.0 / 0.3 1.5 / 0.05
    lifetime-spike 2.0 / 0.2 1.5 / 0.05
    circulation-anomaly 2.0 / 0.1 1.5 / 0.02
    composite-score 3.0 / 0.5 2.0 / 0.1
    challenge-failed 2.0 / 0.5 0.8 / 0.0
    break-speed 2.0 / 0.5 0.9 / 0.0
    duplicate-item 1.0 / 0.0 0.9 / 0.0

    A threshold you set yourself is never matched and never touched. If you had raised one of these on purpose and want the old pairing back, set it again after the first start; the migration runs once.

  3. config-version: 2 is written under enabled:, so the migration does not run again.

  4. warden-gui.yml gains this version's menus and buttons the same way, with their comments. A button this version moved to a different slot is moved in your file rather than drawn over the one already there; where the new slot is taken by something you placed, the new button is hidden (slot: -1) and the console says so. An early build laid the currencies menu out without an items: block; that layout is removed once the new one is in.

  5. The other four files are written fresh if you do not have them: warden-punishments.yml, client-signatures.yml, vulnerabilities.yml, anticheats.yml, and the three free presets under presets/.

A second start touches nothing and prints none of the lines above.

What changes in behaviour

  • Every unstackable item is now stamped, not only the materials you listed. The live index finds a duplicate the moment it appears rather than at the next sweep, and the copy is quarantined. If you sell kits, shops or crates that carry saved items, the second holder of one will be flagged and their copy taken until a third holder proves it a template — then the findings are withdrawn and the copy handed back. Hold the template and run /xwarden unstamp before the first crate opens to skip that. See Anti-Dupe.
  • Operator-only contraband in ordinary hands is quarantined; overstacked stacks are reported.
  • A confirmed cheat client is kicked on join by default (cheat-client ships KICK, the one check besides duplicate-item allowed to). Bedrock players are never probed; Lunar, Feather, Fabric and the rest are on the allow list. See Client Detection.
  • The storage default is now h2. A 1.0.0 file that says storage.type: auto keeps that setting and keeps sharing X-Prison's database exactly as before — nothing is moved. To switch to X-Warden's own file, set type: h2 and restart; the history stays in the old database.
  • Violation levels persist across restarts. A player who was climbing a ladder on the last restart is where they were, less the decay for the downtime.
  • Presets are files in plugins/X-Warden/presets/. preset: balanced in your file still means what it did; the free three are written on the first start.

The X-Prison addon build

If you are coming from the build that lived in plugins/X-Prison/addons/, delete X-Prison-Warden-*.jar from there first or both will load. See Installation.

Clone this wiki locally