Spectating
Watch running matches with /spectate, the match menu and hotbar tools, and what players can change.
Players can watch running matches without taking part. On a network they can also watch a match on another server.
Commands and permissions
| Command | What it does |
|---|---|
/spectate | Opens a menu of running matches. Click one to watch |
/spectate <player> | Watches the match of that player |
/leave | Stops spectating and goes back to the lobby |
| Permission | Default | Meaning |
|---|---|---|
mineduels.spectate | everyone | Use /spectate |
mineduels.spectate.silent | op | Spectate without the players being told |
mineduels.spectate.bypass | op | Watch matches whose players switched spectators off |
A player cannot spectate while they are in a match, in a queue or in the kit editor. They get one of these lines from messages.yml (spectate.in-match, spectate.queued, spectate.editing): leave first.
What a spectator gets
Two modes, set in social.yml:
spectate:
hotbar-items: truehotbar-items | Behaviour |
|---|---|
true (default) | Spectators fly in adventure mode, are hidden from the match's players, and get hotbar items from guis/spectate.yml |
false | Vanilla spectator mode with no items. Number keys teleport to the players |
The default hotbar items:
| Slot | Item | Right click |
|---|---|---|
| 0 | Compass, Players | Opens the list of players of the match. Click one to teleport |
| 8 | Red dye, Stop spectating | Goes back to the lobby |
You can change the material, name, lore and slot of both in guis/spectate.yml under hotbar. The menus are in the same file:
matches:
title: "<dark_gray>Spectate <gray>» pick a match"
match-item:
name: "<yellow>%players%"
lore:
- "<gray>Kit: <white>%kit_display%"
- "<gray>Mode: <white>%mode%"
- "<gray>Round: <white>%round% <dark_gray>(%score%)"
- "<gray>Time: <white>%time%"
- "<gray>Spectators: <white>%spectators%"
- ""
- "<green>Click to watch"
empty-item:
material: BARRIER
name: "<red>No match is running"Placeholders in a match entry: %players%, %kit_display%, %mode%, %round%, %score%, %time%, %spectators%. In the player list: %player%, %side%, %status% (status-fighting or status-out).
What the match's players can set
In /settings, in the spectating category (guis/settings/spectating.yml):
| Setting | Values | Meaning |
|---|---|---|
| Spectators | on, off | Whether others may watch their match. Players with mineduels.spectate.bypass ignore it |
| Spectator alerts | on, off | A message when someone starts or stops watching |
| See spectators | show, hide | While spectating: see the other spectators |
Messages
In messages.yml under spectate:
| Key | Shown |
|---|---|
started, started-items | When you start watching. started-items is used with hotbar-items: true |
joined | To the match's players when a spectator arrives (not with spectate.silent) |
stopped, match-over | When you stop, or the match you watched ended |
not-in-match | The named player is not in a match |
already | You already watch that match |
not-allowed | That match cannot be watched |
failed | Joining failed |
On a network
/spectate <player> looks the player up on the whole network:
Looking for Steve on the network...
Sending you to game-2 to watch Steve...When the player is in a match on a duel server, the spectator is sent there and returns to a lobby when they stop. A player who is not online on any server gets spectate-not-found. See Cross-Server operations.
From other tools
- A plugin can read live matches with
MineDuelsApi.runningMatches()andmatchOf(...). See the Developer API. - Over HTTP,
GET /matches/runninglists running matches on every server. See Matches.
Related: Match types, Player settings.