Scoreboards
BattleArena comes pre-installed with a scoreboards module that lets you configure scoreboards for an arena.
Configuring the Module
This module can be enabled by adding scoreboards to the modules section of your Arena Configuration.
Scoreboards Configuration
This module adds a scoreboards.yml to BattleArena, which can be found in plugins/BattleArena/scoreboards.yml. In this file, you can configure scoreboard templates which can be used across any arena. Here is an example of a template used in the waiting phase and in-game phase.
templates:
waiting:
title: "<gold>Waiting for players..."
refresh-time: 1s
lines:
- simple:
lines:
- " "
- "<yellow>Players: <white>%online_players%/%max_players%"
- "<yellow>Map: <white>%map%"
- " "
- "<white>battleplugins.org"
ingame-list:
title: "<gold>%arena%"
refresh-time: 1s
lines:
- simple:
lines:
- " "
- "<yellow>Map: <white>%map%"
- "<yellow>Time remaining: <white>%time_remaining_short%"
- " "
- "<yellow>Players:"
- player-list:
max-entries: 8
- simple:
lines:
- " "
- "<white>battleplugins.org"
Template Options
Line Types
This contains all the line types you can include in the scoreboard.
Simple
Player List
Top Stat
Top Team stat
Arena Configuration
Scoreboards can be applied using the apply-scoreboard action, with the scoreboard option set to the scoreboard name. As an example: apply-scoreboard{scoreboard=waiting}.
This is also used in the default arena.yml file.