Skip to main content

Teams

Overview

This page covers the main teams configuration for BattleArena. Per-arena team configurations are covered in more detail in the Arena Configuration page.

Teams Configuration

The main teams configuration in BattleArena is located in the plugins/BattleArena/teams.yml file. Quite simply, this is just a list of teams that BattleArena will use in competitions.

By default, teams are allocated to a game based on which teams are in the configuration file first. For instance, if an arena has a team-amount set to 2, that means the first two teams in the configuration will be used (red and blue by default). However, this can be changed per map, by simply making the team amount min inclusive by adding a + (so, team-amount: 2+), and only creating spawn points for the desired teams.

teams:
  - name: Red
    color: 255,0,0
    item: red_wool
  - name: Blue
    color: 0,0,255
    item: blue_wool

The config snippet from above contains the configuration for the Red and Blue teams. These include the item to represent the team, the color of the team (to be used in text), and the plain name of it.