Files per server
Which files to configure or copy on the lobby servers and on the duel servers.
Each backend has its own plugins/MineDuels/ folder. This page lists what each type of server needs in it. Setting values are in Backend config.
Lobby server
| File or folder | Required | What to do |
|---|---|---|
database.yml | Yes | MySQL, cross-server.enabled: true, its own server-name, role: lobby, Redis and the shared secret. Restart after changing it. |
kits/ | Yes | The same kit files as the duel servers. The queue menus list them. |
matchmaking.yml | Yes | Identical on every lobby, because any lobby can become the matchmaker. |
ranks/ | Yes | Identical on every lobby. |
locations.yml | Yes | Set the lobby spawn in game with /md setlobby. Players returning from a duel server land here. |
guis/lobby-items/ | Yes | The hotbar items players see in the lobby. |
guis/server-selector.yml | Optional | The /servers menu. |
messages.yml, config.yml | Keep default or match the network | Wording and general settings. |
webhook.yml | Optional | Messages when the server drains or stops. See Webhooks. |
webapi.yml | One server only | Turn the web API on here, on one server of the network. Leave it off elsewhere. |
arenas/ | No | A lobby does not host matches in the global queue. |
Duel server
| File or folder | Required | What to do |
|---|---|---|
database.yml | Yes | The same MySQL, cross-server.enabled: true, its own server-name, role: game, the same Redis and the same secret. Restart after changing it. |
kits/ | Yes | The same kit files as the lobbies. A match is built from the duel server's own kit file. If the kit is missing, the match is cancelled. |
arenas/ | Yes | The saved arena templates for every kit the server hosts. A kit can only be hosted when arenas exist for it. |
config.yml | Yes | The arena.* pool sized for the matches hosted at once. Optional: match.arrival-settle-seconds, match.arrival-wait-max-seconds and post-match.game-servers. |
match-start.yml | Optional | arrival-box.* and elevator.preload. |
database.yml cross-server.hold.* | Optional | The waiting platform for players who arrive before their opponent. |
webhook.yml | Optional | Messages when the server drains or stops. See Webhooks. |
matchmaking.yml, ranks/ | Keep identical | Ranking data is shared, so keep the files the same as on the lobbies. |
guis/lobby-items/ | No | Players are not given lobby items on a duel server. |
locations.yml | Optional | A lobby spawn is not used by cross-server matches. |
Proxy
| File | What to do |
|---|---|
velocity.toml | Register every backend under [servers]. |
plugins/mineduels/config.properties | Redis, the same secret and the proxy name. The gate.* keys are added on the first start of a new version. See Velocity plugin. |
plugins/mineduels/webhook.yml | Optional. Messages when the proxy drains or the network is empty. See Webhooks. |
Must be identical everywhere
- The secret and the Redis connection.
- The MySQL database.
- The kit files.
- The plugin version on the backends and the proxy.
Each backend keeps its own server-name and role. Players' inventories and positions are stored per server, so nothing else is shared between backends except the database.