Arena Instances
Make extra copies of only your busy duel arenas in their own world, and let the plugin add more copies when players need them.
arenas.instances.enabled and arenas.instances.auto-expand.enabled are both false, and no arenas are picked. Nothing changes until you turn it on.
How It Works
- You make a normal duel arena, for example
Grass. This is the template. - You add
Grasstoarenas.instances.templates. - On start, the plugin pastes copies of
Grassin a separate empty world, with space between them. Each copy gets the spawns, center, kits, build setting and gates. - A copy is only used for matches after it is fully pasted and checked.
- After a match, the copy is reset and used again. With auto expand on, more copies are made when free copies run low.
One copy is one match at a time. A team match also uses one copy.
Once copies of a template are ready, the template itself (and its clone world copies) is no longer used for matches. Keep it as the arena you edit. Arenas that are not picked, and FFA arenas, work as before.
Instances or Cloning?
| System | What it copies | Use it for |
|---|---|---|
| Normal arenas | Nothing. Each arena is one match slot. | Small servers. |
arenas.cloning | The whole Arenas world, a set number of times. | A fixed number of copies of every arena. |
arenas.instances | Only the arenas you pick, into one world. | More copies of busy arenas only, and growing when needed. |
Both can be on at once. Picked templates are skipped by cloning.
What a Template Needs
- A normal duel arena. Not an FFA arena and not a copy.
- Both corners, both spawns and the center inside the corners, linked kits, and a saved build. Gates must be inside the corners too.
- Use the arena name (like
Grass), not a kit name. - A new world name that does not exist yet. Let the plugin make the world.
Set up the arena with Arena Setup first.
Settings
These go inside the arenas: section of config.yml.
arenas:
instances:
enabled: false
world: ShyamDuelsInstances
templates: []
initial-copies: 2
max-copies-per-template: 8
max-total-copies: 128
spacing-blocks: 64
max-concurrent-preparations: 1
auto-expand:
enabled: false
minimum-ready: 1
overrides: {}
| Setting | Default | What it does |
|---|---|---|
enabled | false | Turns instances on. Needs a restart. |
world | ShyamDuelsInstances | Name of the world for copies. Needs a restart. |
templates | [] | Arena names to copy. Empty means none. Needs a restart. |
initial-copies | 2 | Copies of each template made on start. Copies that already exist count. |
max-copies-per-template | 8 | Most copies of one template. |
max-total-copies | 128 | Most copies in total. Failed and retired copies still count. |
spacing-blocks | 64 | Space between copies. Needs a restart. |
max-concurrent-preparations | 1 | Copies pasted at the same time. Normal arena resets go first. |
auto-expand.enabled | false | Makes more copies when free copies run low. |
auto-expand.minimum-ready | 1 | Free copies to keep for each template. |
overrides | {} | Different limits for one template. |
Turn It On
- Stop the server and make a backup.
- Change the settings like this, with your own arena name:
arenas: instances: enabled: true world: ShyamDuelsInstances templates: - Grass initial-copies: 2 max-copies-per-template: 4 max-total-copies: 8 - Start the server. Read the
[ArenaInstances]lines in the console. - Run
/arena instances status Grassto see how many copies are ready. - Play a test duel. Add more copies only after you see how long they take and how the server runs.
With auto expand off, you can still add a copy by hand: /arena instances prepare Grass 1.
Auto Expand
Set auto-expand.enabled: true and run /sd reload-config confirm. When the free copies of a template drop below minimum-ready, a new copy is made, as long as the limits allow it.
Limits for one template
overrides:
Grass:
initial-copies: 2
max-copies: 6
minimum-ready: 1
The template must also be in templates.
Commands
Permission: shyamduels.admin. They also work from the console. A slot is the number of a copy, shown in status.
| Command | What it does |
|---|---|
/arena instances status [template] | Shows limits and copy counts. Name a template to see only that one. |
/arena instances slot <slot> | Shows one copy: state, name, time to prepare and the last error. |
/arena instances prepare <template> [count] | Asks for more copies. |
/arena instances retry <slot> | Tries a failed copy again. Fix the cause first. |
/arena instances refresh <template> | Updates idle copies after you saved the template again. |
/arena instances resume | Starts the system again after it paused, if that is safe. |
Copy states
| State | Meaning |
|---|---|
QUEUED | Waiting to be pasted. |
PREPARING | Being pasted and checked. |
READY | Free for a match. |
IN_USE | A match is running. |
RESETTING | Blocks are being put back. |
FAILED | Not used. Check the error, then retry. |
RETIRED | Removed from use. Its space stays reserved. |
Editing a Template
- Edit the template arena, never a copy.
- After changing blocks, run
/arena saveschem Grass. Idle copies update. Busy copies update when their match ends. - Gates move with each copy. Set them up on the template.
- If the template gets bigger than its reserved space, it may need a new instance world name.
Restart or Reload?
| Change | What to do |
|---|---|
| Turn on or off, change world, templates or spacing | Restart. |
Change limits, minimum-ready, preparations or auto expand | /sd reload-config confirm. Lower limits stop new copies but do not remove copies. |
| Turn it off | Set enabled: false and restart. The world files are kept. |
Backups and Safety Files
Back up the template arenas, the schematics and the whole instance world folder, including hidden files:
.shyamduels-instance-ownermarks the world as made by ShyamDuels..shyamduels-instance-slots.propertieslists the copies and where they are.
After a restart, copies are pasted again before they are used. /arena delete <copy name> retires an idle copy. To stop using a template, remove it from templates and restart before you delete the arena.
Performance Tips
- Start with one template, two copies and one preparation at a time.
- Copies share
arenas.reset-queue.max-concurrentwith normal resets. - Keep the corners tight around the arena. Big empty areas still cost time to paste.
- Watch your TPS and memory before you raise the limits.
If Something Is Wrong
- Run
/arena instances status <template>and check it is on and not paused. - Run
/arena instances slot <slot>on a failed copy and read the error and the[ArenaInstances]console lines. - Check the template: arena name, duel type, corners, spawns, kits, build setting and saved build.
- Fix the cause, then use
retryorresume.
See also Troubleshooting.