Skip to Content
MineDuels

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

CommandWhat it does
/spectateOpens a menu of running matches. Click one to watch
/spectate <player>Watches the match of that player
/leaveStops spectating and goes back to the lobby
PermissionDefaultMeaning
mineduels.spectateeveryoneUse /spectate
mineduels.spectate.silentopSpectate without the players being told
mineduels.spectate.bypassopWatch 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: true
hotbar-itemsBehaviour
true (default)Spectators fly in adventure mode, are hidden from the match's players, and get hotbar items from guis/spectate.yml
falseVanilla spectator mode with no items. Number keys teleport to the players

The default hotbar items:

SlotItemRight click
0Compass, PlayersOpens the list of players of the match. Click one to teleport
8Red dye, Stop spectatingGoes 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):

SettingValuesMeaning
Spectatorson, offWhether others may watch their match. Players with mineduels.spectate.bypass ignore it
Spectator alertson, offA message when someone starts or stops watching
See spectatorsshow, hideWhile spectating: see the other spectators

Messages

In messages.yml under spectate:

KeyShown
started, started-itemsWhen you start watching. started-items is used with hotbar-items: true
joinedTo the match's players when a spectator arrives (not with spectate.silent)
stopped, match-overWhen you stop, or the match you watched ended
not-in-matchThe named player is not in a match
alreadyYou already watch that match
not-allowedThat match cannot be watched
failedJoining 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() and matchOf(...). See the Developer API.
  • Over HTTP, GET /matches/running lists running matches on every server. See Matches.

Related: Match types, Player settings.

On this page