-
Notifications
You must be signed in to change notification settings - Fork 13
Scoreboards
Scoreboards are a list of texts seen on the right hand side of the window. This plugin has five different built-in scoreboards. One is shown in the main spawn world (can be changed) and the other ones are shown in different phases of the game, such as the lobby, building, voting and winning. The different scoreboards are explained below.
The main scoreboard is visible in the main spawn world and can show general info about the player's statistics and several other general data type such as dates and times. You can enable/disable the worlds in which this scoreboard is visible in the config.yml scoreboards
> main
> worlds
> enable
, or completely enable/disable this scoreboard by changing scoreboards
> main
> enable
in the config.yml. The header and text shown can be changed in the messages.yml scoreboards
> main
> header
/text
.
The lobby scoreboard is shown in the lobby phase of a game. The scoreboard can be enabled/disabled by changing scoreboards
> lobby
> enable
in the config.yml. The header and text shown can be changed in the messages.yml scoreboards
> lobby
> header
/text
.
The build scoreboard is shown in the building phase of a game. The scoreboard can be enabled/disabled by changing scoreboards
> build
> enable
in the config.yml. The header and text shown can be changed in the messages.yml scoreboards
> build
> header
/text
.
The voting scoreboard is shown in the voting phase of a game. The voting scoreboard has two different modes, points and text mode. In points mode the scoreboard will show the player's name followed by the amount of points this player has. In text mode the scoreboard will behave like all other scoreboards. Whether the scoreboard is in text mode can be changed in the config.yml scoreboards
> vote
> text
. The scoreboard can be enabled/disabled by changing scoreboards
> vote
> enable
in the config.yml. The header and text shown can be changed in the messages.yml scoreboards
> vote
> header
/text
.
The winning scoreboard is shown in the winning phase of a game. The scoreboard can be enabled/disabled by changing scoreboards
> win
> enable
in the config.yml. The header and text shown can be changed in the messages.yml scoreboards
> win
> header
/text
.
You can change whether a line should be shown or hidden in certain situations by making use of conditionals. Conditionals are pieces of text which check a condition and only when that condition is met the line will be shown. You start a conditional by using a dollar sign ($) followed by a function name. After that you can use either == or !=. == checks if both values are equal and != checks if both values are unequal. After this another function follows as a comparator for the first function. After a conditional a space is required. The space will not be taken into account when showing the line, nor will the conditional. No spaces may be used within a conditional. An example of using conditionals:
text:
- '&6Players:'
- '$players!=max-players &a%players%/%max-players%'
- '$players==max-players &aArena is full!'
These conditionals can be used with every scoreboard, except the main scoreboard.
Conditional functions:
- players -> the amount of players currently in the game
- max-players -> the maximum amount of players this arena can have