2.0 ‐ BossBar - Rosstail/Nodewar GitHub Wiki
When you stand in a territory, a bossbar will appear at the top of your screen. Some infos will be available on it.
First and configurable, the bossbar color will depend of your relation with the current territory owner, it is customisable in the config.yml as it follow:
# config.yml
bossbar:
enable: <boolean>
color: # RED, YELLOW, BLUE, GREEN, PINK, PURPLE, WHITE
neutral: <String>
controlled: <String>
team: <String>
ally: <String>
truce: <String>
enemy: <String>
-
enable
: True by default. If true, will display the bossbar for every territory a player stands on.
The choices are limited between RED, YELLOW, GREEN, BLUE, PINK, WHITE, PURPLE.
-
color.neutral
: When a player stands in a territory without owner. -
color.controlled
: When a player stands in a territory owned by a team with neutral relation with player's team. -
color.team
: When a player is member of the team owning the territory. -
color.truce
: When the team controlling the territory is in truce with the team of the player passing by. -
color.enemy
: When the player is in a territory controlled by an enemy of his team.
The color of the bossbar can also change depending of multiple factors: in a battle, it can design what team has the advantage. The bossbar is generally filling or depleting by the occasion.
You can also edit the text of the bossbar depending of the battle status and/or if the territory has an owner or not in the lang files.
# lang/anylangfile.yml
territory:
bossbar:
global:
wild: <string>
occupied: <string>
battle: <string>
battle-ending: <string>
battle-ended: <string>
arrow:
no-advantage: "↔"
left-to-right: "→"
right-to-left: "←"