Skip to Content
MineDuels

config.yml

Arena grid, lobby, match timing, worlds, and spawn command.

Path: plugins/MineDuels/config.yml
Reload: yes (/md reload)
Merged with: database.yml, matchmaking.yml, social.yml, match-start.yml, kit-editor.yml

What it supports

  • Arena copy world and performance budgets
  • Lobby protection, void return, region rules
  • Match countdown, allowed in-match commands, sudden death
  • Post-match stay hotbar toggle (items in guis/lobby-items/post-match.yml)
  • Death message toggles (text in messages.yml)
  • Per-world enable/disable and command blocks
  • /spawn command and lobby fun modes (/fly, spear, elytra)

What it does not do

  • Does not store ELO, queue tuning, or parties (those sections live in other split files)
  • Does not define kit rules or arena templates (kits/, arenas/)
  • license.key is reserved; empty is normal for most installs
  • Changing arena.world after first run usually needs a restart (see Reload matrix)

license

license:
  key: ""

Placeholder for commercial license flows. Leave empty unless your build requires a key.


arena

Controls the grid world where arena copies are pasted.

arena:
  world: mineduels_arenas
  grid:
    origin-x: 100000
    origin-z: 100000
    spacing: 1024      # must be large enough for each template footprint
    columns: 64
    max-cells: 4096
  paste-y: center      # or a fixed Y integer
  trim-on-save: true   # shrink capture to non-air blocks
  edit:
    world: mineduels_edit
    margin: 32         # extra blocks captured around arena in edit mode
  budget-ms: 4.0
  parallel-work: 0       # 0 = auto
  parallel-resets: 0

Supports: Built-in pasting, Folia-safe spacing (keep spacing >= 512).
Does not: Create the world for you on Folia (create mineduels_arenas before boot).

world-protection disables natural events in the arena world outside active matches (leaf decay, mob spawn, etc.).

Performance notes

KeyRole
budget-msTarget milliseconds of paste/reset work per tick (default 4.0). Lower = smoother ticks, slower copies
parallel-workWorker threads for arena work (0 = auto). Useful on multi-core hosts
parallel-resetsParallel arena resets (0 = auto)
trim-on-saveSmaller .cda captures = faster paste

Copy pool is per template in arenas/<id>.yml → copies.min / copies.max, not in this block. Raising min keeps idle READY copies and reduces paste-during-queue spikes. See kits/ and arenas/.

If copies sit in PASTING for a long time, check host CPU and whether too many matches started at once. Guide: Performance and Spark.


lobby

lobby:
  teleport-on-join: true
  clear-inventory: true
  gamemode: adventure
  protect: true
  windcharge-push-others: false
  void-teleport-y: 0
  region:
    pvp: false
    build: false
    keep-inside: true

Supports: Sending players to /md setlobby, clearing match gear, adventure/survival/creative/spectator.
Does not: Replace Multiverse; only affects MineDuels states.

windcharge-push-others: false keeps lobby players from pushing or using each other outside a match. Wind charges, snowballs, arrows, pearls and fishing rods give other players no push, bodies do not collide, and a player cannot be ridden, led or clicked. Only the player who threw a wind charge is pushed by it, so the spear and wind lobby modes keep working. Set it to true, or lobby.region.pvp to true, to allow all of this. Players in matches are not affected.

keep-inside: true returns leavers unless they have mineduels.lobby.bypass. Lobby location is in locations.yml (set via /md setlobby).


match

match:
  countdown-seconds: 5
  round-pause-seconds: 3
  end-delay-seconds: 3
  quit-counts-as-loss: true
  allowed-commands: [leave, forfeit, stats, rematch, party]
  command-mode: allow
  blocked-commands: []
  commands-by-type: {}
  sudden-death-seconds: 60
  recovery: true
  recovery-hours: 24

Matches that were running when the server stopped

While a match runs it is kept in the database table md_running. A graceful stop ends the matches and removes the rows. After a crash or kill the rows remain, and the next start does this for each row of that server:

  • the arena copy is pasted again in full before it is handed out;
  • the players of the match are taken out of the arena and sent to the lobby when they join, with a short notice;
  • on a duel server of a network, the lobby that asked for the match is told it is cancelled, so a tournament bout or party game fails at once.

recovery: false turns this off. Rows older than recovery-hours are dropped without action. The database is not needed for the match to run: if a write fails the match goes on and only the recovery is missing.

Commands during a match

allowed-commands lists commands without the slash. During a match only these work, and /forfeit and /surrender always work. Everything works again once the match is over. A namespaced form such as /minecraft:tell counts as tell.

KeyMeaning
command-modeallow (default): only the listed commands work. deny: every command works except blocked-commands.
blocked-commandsThe commands refused in deny mode.
commands-by-typeA list per match type that replaces allowed-commands for that type. The types are duel, queue, party-split, party-ffa, party-teams, party-duel, red-rover and tournament.

The permission mineduels.match.commands.bypass (op by default) lets a player use any command during a match.

Examples:

# a strict tournament, normal rules elsewhere
match:
  allowed-commands: [leave, stats, msg, tell, r]
  commands-by-type:
    tournament: [leave, msg]
# everything works except teleporting away
match:
  command-mode: deny
  blocked-commands: [spawn, home, tpa, warp]

post-match

post-match:
  enabled: true
  stay-seconds: 10
  duels: true

When enabled: false, everyone returns to lobby after match.end-delay-seconds. Hotbar slots come from guis/lobby-items/post-match.yml.


death-messages

death-messages:
  enabled: true
  last-hit-seconds: 10
  spectators: true

Actual message strings are in messages.yml and per-kit overrides via /md kit deathmessage.


setting-sounds

Sounds when players change options in /settings (kill effect, mention ping).

setting-sounds:
  kill:
    sound: entity.experience_orb.pickup
    volume: 1.0
    pitch: 1.0

locator-bar

locator-bar:
  show-sneaking: true
  mode: invisible   # invisible | hide-entity | off

Controls the 1.21 locator bar during MineDuels states. hide-entity may not work on all clients.


worlds

worlds:
  disabled: [build_world]
  enabled: []        # if non-empty, MineDuels only runs in these worlds
  blocked-commands: [queue, duel, spectate]

Use disabled to run practice in a creative world without duels commands. blocked-commands is the start of the command line (no /).


spawn

spawn:
  enabled: true
  command: spawn
  aliases: []

enabled: false removes the command entirely (restart to apply if you toggle from true to false on some builds; reload handles alias text).


lobby-modes

Spear and elytra lobby toys; item names in items.yml → lobby-modes.


dev-commands

dev-commands: false

When true, exposes /md arena test, /md debug, /md animation for operators.

On this page