Creating a team
Callscoreboard.team(String name) to create a team or retrieve an existing one by the same name. It is safe to call repeatedly — if a team with that name already exists, it is returned rather than duplicated.
Setting visual properties
UsesetColor, setPrefix, and setSuffix to control how team members appear in chat and above their heads. All setter methods return the Team instance, so you can chain them.
TeamColor values: BLACK, DARK_BLUE, DARK_GREEN, DARK_AQUA, DARK_RED, DARK_PURPLE, GOLD, GRAY, DARK_GRAY, BLUE, GREEN, AQUA, RED, LIGHT_PURPLE, YELLOW, WHITE
Gameplay rules
VelaBoard exposes several gameplay rules that control how team members interact with each other and other players.TeamCollisionRule values:
ALWAYS— all entities collide with team membersFOR_OWN_TEAM— only teammates collide with each otherFOR_OTHER_TEAMS— only non-teammates cause collisionsNEVER— no collision with team members
TeamNameTagVisibility values:
ALWAYS— all players can see team member name tagsFOR_OWN_TEAM— only teammates see name tagsFOR_OTHER_TEAMS— only non-teammates see name tagsNEVER— name tags are hidden from everyone
Managing members
Add or remove players and entities using the methods below.scoreboard.getTeamOf: