Per-world rules
Run MineDuels in some worlds only, and block its commands where it is off.
By default MineDuels works in every world. If your server has other worlds, for example a survival world, you can switch it off there.
Settings
In config.yml:
worlds:
disabled: []
enabled: []
blocked-commands: [queue, duel, rematch, gduel, spectate, "kit editor", "party create", "party invite",
"party accept", "party join", "party open", "party split", "party ffa", "party promote", "party kick"]| Key | Meaning |
|---|---|
disabled | MineDuels is off in these worlds and on everywhere else |
enabled | When not empty, MineDuels is on only in these worlds. It wins over disabled |
blocked-commands | Commands refused in a world where MineDuels is off |
The arena world is always on. Reload with /md reload.
Examples
Off in the survival world:
worlds:
disabled: [survival, survival_nether, survival_the_end]On only in the lobby world (and the arena world, which is always on):
worlds:
enabled: [lobby]What "off" means
In a world where MineDuels is off:
- Lobby items are not given, and lobby items a player still carries are removed when they enter the world.
- A player who is queued is taken out of the queue when they change into the world.
- The commands in
blocked-commandsare refused and the player getsworlds.command-blocked. - Other players cannot invite someone in that world to a party or send them a duel. They are told the player is unavailable (
worlds.target-unavailable).
blocked-commands
Each entry is the start of a command line without the slash. Spaces match words:
blocked-commands: [queue, "party invite", "kit editor"]queueblocks/queueand/queue ranked nodebuff."party invite"blocks/party invite Bobbut not/party info.- A bare
partyblocks every/partycommand. - Aliases and namespaced forms are covered:
/p invite Boband/mineduels:party invite Bobmatchparty invite.
Removing the list falls back to the default shown above. An empty list [] blocks nothing.
Different scoreboard or tab per world
See Scoreboard and Tab list for the display files.
Related: Configuration catalog, Spawn command.