TeamColor, TeamCollisionRule, and TeamNameTagVisibility.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Complete reference for TeamColor (16 values), TeamCollisionRule, and TeamNameTagVisibility enums used when configuring team visual and gameplay properties.
TeamColor, TeamCollisionRule, and TeamNameTagVisibility.
| Value | Minecraft color code |
|---|---|
BLACK | §0 |
DARK_BLUE | §1 |
DARK_GREEN | §2 |
DARK_AQUA | §3 |
DARK_RED | §4 |
DARK_PURPLE | §5 |
GOLD | §6 |
GRAY | §7 |
DARK_GRAY | §8 |
BLUE | §9 |
GREEN | §a |
AQUA | §b |
RED | §c |
LIGHT_PURPLE | §d |
YELLOW | §e |
WHITE | §f |
TeamColor wraps Bukkit’s ChatColor — use getColor().getChatColor() to get the underlying ChatColor.| Value | Description |
|---|---|
ALWAYS | Players always collide |
NEVER | Players never collide |
FOR_OWN_TEAM | Collide with teammates only |
FOR_OTHER_TEAMS | Collide with enemies only |
| Value | Description |
|---|---|
ALWAYS | Name tags always visible |
NEVER | Name tags never visible |
FOR_OWN_TEAM | Visible to teammates only |
FOR_OTHER_TEAMS | Visible to enemies only |
// Use color code in prefix matching team color
team.setColor(TeamColor.RED)
.setPrefix(TeamColor.RED.getChatColor() + "[Red] ");