Arena Regen Extension - Duels Optimized v1.3.0
3rd party extension made for the duels optimized plugin, regen your arenas with ease!
v1.3.0
LatestCompatibility
Changes
Snapshots are saved to disk now, so a restart or a crash no longer costs you an arena.
๐พ Snapshots Survive Restarts
Snapshots used to live only in memory, which caused two quiet problems.
With snapshot-each-match: false, every restart wiped your reference snapshot and regeneration stopped until you ran /duelregen save again. With it set to true, a crash mid-match left the arena wrecked with nothing to restore from.
Snapshots are now written to disk as they are captured, into plugins/Duel-Regen/snapshots/. Writing happens in the background and is done safely, so a crash partway through cannot corrupt a file you already had.
persist-snapshots: true
On by default. Turn it off if you would rather keep the old behaviour.
๐ Crash Recovery
Because snapshots are on disk, the plugin can work out what happened while the server was down.
- With
snapshot-each-match: true, a snapshot sitting there at startup can only mean the server went down mid-match, so that arena is regenerated automatically - With
snapshot-each-match: false, the file is your pristine reference. It is loaded straight back into memory and the arena is left alone
Loading happens off the main thread at startup, so it costs you nothing, and a snapshot already in memory is never overwritten by a file.
FAWE and WorldEdit snapshots are saved as standard Sponge schematics, so you can open one in WorldEdit yourself if you ever need to. A snapshot file from a different Minecraft version, or one that has been damaged, is skipped with a warning rather than restoring something broken.
๐ค Hand-Edited Arena Names Work
If you set regions up by editing the config rather than using the wand, the key had to match the Duels arena name exactly. Write arena_2 for an arena called Arena2 and every arena warned that no region was configured, with nothing regenerating.
Names are now matched loosely when an exact match fails, ignoring capitals, underscores, hyphens and spaces, so arena_2 finds Arena2. The console tells you once and suggests renaming the key, and any two keys that would collide are reported.
Your config is also checked against Duels at startup. A second after the server starts, the plugin compares your keys with the arenas Duels actually has, and reports any key that matches no arena, along with any Duels arena that has no region at all. If a fuzzy match will cover it, it says so.config.yml now documents hand-editing properly, with a full example block and a note that keys are Duels arena names rather than world names. Handy if you already have the coordinates, say from a WorldGuard region, and would rather paste them than use the wand.
๐ Also Fixed/duelregen remove deleted nothing when you typed a loosely matched name. It found the region but removed it under the name you typed rather than its real key. It removes the right one now.
๐ฆ Install
Stop the server, replace the old jar in plugins/ with Duel-Regen-1.3.0.jar, and start it again. Your config and your arenas carry over, and the new keys are added for you.
Worth doing once afterwards: read the console on that first start. The new cross-check will name any arena whose key does not line up with Duels.
๐ Version Breakdown
| Version | Focus |
1.3.0 |
Snapshots saved to disk, so a restart no longer wipes your reference snapshot and a crash mid-match recovers on its own. |
1.2.0 |
Arena keys matched loosely when they do not line up exactly, a startup cross-check against Duels, documented hand-editing, and a fix for removing a loosely matched region. |
๐งช Compatibility
Minecraft 1.18.2 through 1.21.11.
Join the Discord
Enjoying the plugin? A โญ review goes a long way!
Statistics
Views
Purchases
Downloads
File size
Published
Updated
Info
Share & Earn
Share and earn part of the profits, an estimated €0.5 per product sale.