Skip to content

Season Reset

Jan Kluka edited this page Oct 24, 2026 · 3 revisions

Season Reset

Rebuilt in 2026.3.14.0

A season reset wipes progression so everyone starts fresh. You choose exactly what goes; everything else carries over.


Running a reset

In game: /xprison → SEASON RESET. Every entry shows how many records it would remove. Red entries are wiped, green ones kept - click to switch. RESET SEASON asks for confirmation, then runs in the background and reports what happened in chat.

Console:

Command Description
/xprison season list Every entry, and which are wiped by default
/xprison season dryrun [--include=a,b] Count what would be removed. Deletes nothing
/xprison season reset [--include=a,b] confirm Run the reset. Without --include it uses the default selection

Example: /xprison season reset --include=currencies,ranks,prestiges,blocks confirm


What can be wiped

Entry Wiped by default
currencies - currency balances, except the ones in keep-currencies (Credits) yes
ranks, prestiges, rebirths yes
blocks - blocks mined yes
autominer - AutoMiner time and tiers yes
multipliers - personal and global multipliers yes
gangs yes
quests, battlepass, dailyrewards, milestones yes
nicknames - name cache, rebuilt as players join yes
history - the player history log no
boosters - queued boosters, often paid for no

Add-ons that support the season reset add their own entries. Loaded add-ons that do not are shown greyed out - their data is kept.

Add-on (version) Entry Notes
Coinflip 1.1.0+ coinflip Runs before currencies and refunds every open wager first. Open games and payouts still owed are never deleted
Casino 1.1.0+ casino Skipped - nothing deleted - while a Crash round still holds a wager
Crystals 1.1.0+ crystals Stored and equipped crystals. Crystal items in inventories are kept
Attachments 1.1.0+ attachments Stored attachments. Attachment items and attachments on pickaxes are kept

Items are never touched. Pickaxes keep their enchants, levels, quality and skins, and add-on items (crystals, pets, attachments...) stay in inventories. Pair the reset with an inventory wipe for a clean season.

Each module's data can also be reset on its own from the Module Manager - it goes through the same safe path.


Settings

In config.yml:

season:
  id: '1'
  name: 'Season 1'
  start-date: ''
  roll-battlepass: true
  max-online-players: 0
  keep-currencies:
    - credits
Option Description
id, name, start-date Shown in the menu and as %xprison_season_id%, %xprison_season_name%, %xprison_season_start%. Update them yourself when a season starts
roll-battlepass When Battle Pass is reset, start the next Battle Pass season (season-1 → season-2)
max-online-players How many other players may be online during a reset - the admin running it does not count. 0 by default; -1 disables the check (not recommended)
keep-currencies Currencies whose balances the reset never touches - balances players paid real money for. credits (the store currency) by default. Add any other premium currency, or set [] to wipe every balance. Added in 2026.3.14.1

How it stays safe

  1. Refuses while too many players are online, or while another reset is running.
  2. Fires SeasonResetStartEvent - another plugin can cancel it.
  3. Waits for player saves still in progress, so a player who quit seconds ago cannot write old data back afterwards.
  4. Runs the selected entries in order. One that fails does not stop the others; every result is reported and logged.
  5. Waits for every database write to finish, then reloads the data of anyone online.
  6. Rolls the Battle Pass, refreshes leaderboards and fires SeasonResetCompleteEvent.

For add-on developers

XPrisonAPI.getInstance().getSeasonApi().registerParticipant(new SeasonResetParticipant() {
    public String getId() { return "coinflip"; }
    public String getDisplayName() { return "Coinflip games and stats"; }
    public int getResetPriority() { return 50; }      // before currencies (100)
    public long countRecords() { return repository.countAll(); }
    public SeasonResetResult reset() {
        refundOpenGames();
        repository.deleteAll();
        return SeasonResetResult.done(-1);
    }
});

countRecords() and reset() run off the main thread. Return SeasonResetResult.skipped(reason) when it is not safe to reset (for example money is on the table). A participant that holds currency for players should run before currencies (priority below 100) and give it back first. See Developer API.

XPrison Logo

General

Modules

Default Configs

Enchant Configs — Passive

Enchant Configs — Currency Rewards

Enchant Configs — Key & Item Rewards

Enchant Configs — Area of Effect

Enchant Configs — Multipliers

Enchant Configs — Templates

Enchant Configs — Addons

Addons

Support

For Developers

Others

Clone this wiki locally