Team (Expression) — Skript

Addon: Skript · Category: Expression

Syntax

[the] team[s] named %strings%

Description

An existing team, by name. Returns nothing if no team with that name exists. Deleting this unregisters the team and removes it from every client that can see it. Teams live in memory and are not saved across restarts, so scripts should recreate them on load. The word 'named' is required: without it the pattern would swallow expressions such as 'team prefix of {_t}'.

Examples

set {_team} to team named "red"

if team named "red" is not set:
	set {_team} to a new team named "red"

View source