Packet Team Of Entity (Expression) — skPackets

Addon: skPackets · Category: Expression · Since: 1.0.0

Syntax

(fake|packet) team of %numbers/packetentities/entities%

Description

Gets the packet team assigned to entity IDs, fake entities or Bukkit entities. Use 'add player to packet team {_team}' to assign a team. Delete/reset clears the assignment; send the old team again to remove the client entry. Unknown IDs are rejected.

Examples

command /red-squad-expr-packet-team:
    trigger:
        set {_team} to a new packet team:
            name: "demo"
        add player to packet team {_team}
        send packet {_team} to player
        set {_assigned} to packet team of player
command /red-squad-expr-packet-team-fake:
    trigger:
        set {_team} to a new fake team:
            name: "demo"
        add player to fake team {_team}
        send packet {_team} to player
        set {_assigned} to fake team of player

View source