Skip to content

Admin Spectating

Martin Eisengardt edited this page Jan 2, 2017 · 3 revisions

MinigamesLib - Spectator Setup

The spectator mode allows any player to view a running game. The setup is simple and fast if you do not care about details. But before enabling the spectator mode, ask yourself if spectators can influence a running game.

Let us say you have a very tatical arena where two teams are fighting. Is one team able to talk to third persons via teamspeak spectating the game and telling the opposite player positions?

Spectator spawns or bounds

Both are optional. If no spaw is set it will use the first player spawn. If no bounds are set it will use the arena bounds. You only need to setup spectator bounds or spawns if you plan to have a special spectator area.

For example, the spectating area can be a room made of glass on top of the arena.

You setup the spectator bounds by placing your Player on top of the corresponding block and entering the following command:

/sc setspecbounds low

The high bounds are set with following command

/sc setspecbounds high

The spectator spawn can be set by following command:

/sc setspecspawn

Activating spectate after dead/lost

Some games are not ending after losing them. For example snake with many players will go on till exactly one player is remaining.

For those games you can activate spectation mode by config.

Within arenas config you will find the following entry:

config.spectator.spectator_after_fall_or_death

It defaults to true. If set to true the players will join spectator mode as soon as they lose the game.

Spectate by command

The users are able to spectate a running game simply by invoking a command.

/sc spectate

To allow users using this command they will Need the "spectate" permission. See Permissions Wiki page for Details.

Spectate by sign

You can create a spectator sign similar to the join signs. Enter the following lines on your sign:

Snake

snaketest

spec

This will create a spectator sign. Clicking the sign lets the players join the spectator mode.

Clone this wiki locally