effect
add <who> to team <name>since 1.5.7Put a player in a team, leaving the one they were in
add player to team "red"Try it← All of the Docs Players
add <who> to team <name>since 1.5.7Put a player in a team, leaving the one they were in
add player to team "red"Try itremove <who> from teamsince 1.5.7Take a player out of their team
remove player from teamTry itremove <who> from team <name>since 1.5.7The same, but only if they are in that team
remove player from team "red"Try itset color of team <name> to <colour>since 1.5.7The colour of names: red, dark_blue, gold, or a code such as "&a"
set color of team "red" to redTry itset prefix of team <name> to <text> / set suffix of team <name> to <text>since 1.5.7Text before or after each name
set prefix of team "red" to "&c[Red] "Try itset friendly fire of team <name> to <true or false>since 1.5.7Whether team mates can hurt each other
set friendly fire of team "red" to falseTry itdelete team <name>since 1.5.7Remove a team; its players are in no team afterwards
delete team "red"Try itteam of <who>since 1.5.7The name of a player's team; unset if they have none
if team of player is "red":
send "&cGo red!"Try itplayers of team <name>since 1.5.7A list of the names in a team, online or not
for each {_mate} in players of team "red":
send "&cRed team, assemble!" to {_mate}Try itA team colours its players' names in chat, in the tab list and above their heads, and can put a tag in front of them.
on load:
set color of team "red" to red
set prefix of team "red" to "&c[Red] "
set friendly fire of team "red" to false
command /red:
trigger:
add player to team "red"
send "&cYou joined the red team."
| Syntax | Effect |
|---|---|
add <who> to team <name> | Put a player in a team, leaving the one they were in |
remove <who> from team | Take a player out of their team |
remove <who> from team <name> | The same, but only if they are in that team |
set color of team <name> to <colour> | The colour of names: red, dark_blue, gold, or a code such as "&a" |
set prefix of team <name> to <text> / set suffix of team <name> to <text> | Text before or after each name |
set friendly fire of team <name> to <true or false> | Whether team mates can hurt each other |
delete team <name> | Remove a team; its players are in no team afterwards |
team of <who> | The name of a player's team; unset if they have none |
players of team <name> | A list of the names in a team, online or not |
on load: so that they exist as soon as the script is loaded.