> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/newgen/api/net/minecraft/network/protocol/game/clientboundsetplayerteampacket.md).

# ClientboundSetPlayerTeamPacket

Creates, updates or removes a team, or changes its members.

### Remarks

The team's display settings (prefix, color and so on) are not exposed.

### Extends

* [`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md)

### Properties

#### id

> `readonly` **id**: `string`

The protocol id, e.g. "minecraft:swing". Stable across versions, unlike class names.

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`id`](/newgen/api/net/minecraft/network/protocol/packet.md#id)

***

#### name

> `readonly` **name**: `string`

The class name, e.g. "ServerboundSwingPacket".

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`name`](/newgen/api/net/minecraft/network/protocol/packet.md#name)

***

#### playerAction

> `readonly` **playerAction**: `string`

ADD when players join the team, REMOVE when they leave, null otherwise.

***

#### players

> `readonly` **players**: `string`\[]

The affected player names.

***

#### serverbound

> `readonly` **serverbound**: `boolean`

True for packets the client sends, false for ones it receives.

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`serverbound`](/newgen/api/net/minecraft/network/protocol/packet.md#serverbound)

***

#### teamAction

> `readonly` **teamAction**: `string`

ADD when the team is created, REMOVE when it is removed, null otherwise.

***

#### teamName

> `readonly` **teamName**: `string`

The team name.
