Death Swap Guides

Death Swap · Release 3.0.1

Backup And Recovery

Stop the server and back up the entire plugins/DeathSwap/ folder together with normal server player/world backups before updates. Use one coherent backup point; mixing old player snapshots with new inventories or reward ledgers can duplicate or lose items/payments.

File/folder Contents Recovery rule
config.yml Owner settings and kits Keep custom values; migration backs up older config
displays.yml Boundary center, spawn, NPC/board locations Keep permanent lobby world available
arena-settings.yml Named match definitions Separate from random terrain worlds
arenas.yml, worlds/, templates/ Ownership registry, working maps, baselines Back up/restore as a set
players/<UUID>.yml Original player state awaiting recovery Never delete to bypass a stuck restore
data.yml Statistics, results, fees and reward ledger Never reset to fix one payout
web/leaderboards.json Generated public website view Regenerated from statistics
guides/previous-3.0.1/ Previous differing bundled guides Reference only

Player snapshots are validated before inventory changes. Missing known records, invalid UUIDs/inventories, invalid modes and invalid numeric state fail closed. A blocked exit retains the snapshot and player protections without copying original belongings into the arena. Fix the lobby spawn or the conflicting teleport restriction, then use /ds lobby or rejoin. Unavailable/invalid lobby destinations use a permanent-world fallback for recovery when necessary. Never manually copy a snapshot into a player inventory and then leave it pending.

processing-withdrawal, processing-refund and processing-payment mean a transfer crossed an interruption boundary. Check the economy history or actual player inventory before manual reconciliation. The plugin intentionally does not blindly retry these entries. Pending refunds/rewards are retried when conditions allow; paid/spent entries are retained for audit.

A storage error during one player's restoration or fee finalization no longer prevents cleanup for other players or release of the reservation. A result-save failure is logged with match ID, winner UUID and duration for manual correction; there is no claim of an atomic transaction across the server, filesystem and Vault provider.

For failed rollback, keep the archive and working world. Check permissions, free disk space and logs. Do not create a replacement baseline from a used match world. Queue a replacement through the admin GUI if the original cannot be recovered. Unknown folders/symlinks are not cleanup targets. After a crash, unregistered staging/backup folders may need owner inspection; see MAP-POOL-GUIDE.md.

Install JAR updates with full restarts. Hot-unload tools and Bukkit /reload are unsupported. Current automated verification is described in VALIDATION.md; a staged live test with your installed plugin stack remains necessary.

Multi-version storage and installation

The earlier worlds/ paths in this guide describe 1.20.4–1.21.11. On 26.x, the actual arena data lives at <main-world>/dimensions/deathswap/dsarena_<UUID>/ (26.1.1 alpha uses dimensions/minecraft/deathswap/), with keys deathswap:dsarena_<UUID>. Templates, ownership registry and other plugin data stay in plugins/DeathSwap/. Include both locations in backups. Only token-owned DeathSwap arena folders/dimensions may be restored or deleted; the primary level.dat and unrelated dimensions/builds are outside rollback.

Finish all matches and pending player recovery on the old server before changing Minecraft versions. Back up the full stopped server and plugin data. The target guard rejects a mismatched JAR, and server-version.properties blocks downgrades of upgraded data. Incompatible owned pool maps retire and regenerate under the local idle rule; config, kits, lobby/NPC records, statistics and economy ledgers are retained.

The published 26.1.1 Paper server is an alpha build with shared clock behavior. That profile inherits the existing clock/weather instead of resetting/freezing them, and arena beds cannot advance the shared clock. This exception protects the main world. Newer profiles use independent arena time/weather normally.

26.1.1 alpha also uses a reserved minecraft:deathswap/ dimension-key prefix because custom namespaces are not implemented upstream. Later 26.x builds use the deathswap: namespace. Moving between these storage layouts may leave old arena folders retained for owner inspection; never delete unverified world folders.

3.0 shared-world behavior

See MAP-POOL-GUIDE.md: size is 500 + 300 per player after two. Finished areas wait for an all-matches-finished reset window; no new assignments enter until full rollback completes. World renewal is weekly with a new seed. Normal swaps are 60–180 seconds (90%), short 30–59 (9%), rare 300 (1%), with a random 3–10-second warning included in each interval. Operators/admins retain commands and access.

Copy/reference files are under guides/settings-defaults and guides/settings-current. /ds admin exportsettings refreshes current copies; secrets are redacted. Back up shared-world.yml and actual owned world storage as well as plugin recovery data. Old 2.x world-pool fields are not the active shared controller’s rotation rules.

Admin observation uses spectators/*.yml containing only original game mode and location. It never escrows, clears or restores admin inventory, XP, health, effects or personal borders. These lightweight recovery records are generated data, not editable settings.