Class Team

Represent a team

Hierarchy

  • Team

Constructors

Properties

Methods

Constructors

Properties

edit: { collisions: ((type: extraTeamChoice) => string); color: ((color: mcDefaultColors) => string); deathMessage: ((hideFor: extraTeamChoice) => string); display: ((content: JsonRaw) => string); friendlyFire: ((active: boolean) => string); invisibleFriends: ((hidden: boolean) => string); nametag: ((hideFor: extraTeamChoice) => string); prefix: ((content: JsonRaw) => string); suffix: ((content: JsonRaw) => string); update: (() => string[]) } = ...

Manage the team attributes

Type declaration

  • collisions: ((type: extraTeamChoice) => string)
  • color: ((color: mcDefaultColors) => string)
  • deathMessage: ((hideFor: extraTeamChoice) => string)
  • display: ((content: JsonRaw) => string)
      • (content: JsonRaw): string
      • Set the new team's display name

        Parameters

        Returns string

  • friendlyFire: ((active: boolean) => string)
      • (active: boolean): string
      • Set if PvP is activated inside the team

        Parameters

        • active: boolean

        Returns string

  • invisibleFriends: ((hidden: boolean) => string)
      • (hidden: boolean): string
      • Set if invisible member can be saw by the other team member

        Parameters

        • hidden: boolean

        Returns string

  • nametag: ((hideFor: extraTeamChoice) => string)
  • prefix: ((content: JsonRaw) => string)
      • (content: JsonRaw): string
      • Set the new team member's prefix

        Parameters

        Returns string

  • suffix: ((content: JsonRaw) => string)
      • (content: JsonRaw): string
      • Set the new team member's suffix

        Parameters

        Returns string

  • update: (() => string[])
      • (): string[]
      • update all the team attribute in one time

        Returns string[]

members: { add: ((entity?: Entity, force?: boolean) => string | (string | string[])[]); clear: (() => string); remove: ((entity: Entity, force: boolean) => string | string[]) } = ...

Manage the team member

Type declaration

  • add: ((entity?: Entity, force?: boolean) => string | (string | string[])[])
      • (entity?: Entity, force?: boolean): string | (string | string[])[]
      • Add a member to the team

        Parameters

        • Optional entity: Entity

          The entity to add to the team

        • Optional force: boolean

          If is set to false the command will do nothing if the entity is already in an other team

        Returns string | (string | string[])[]

  • clear: (() => string)
      • (): string
      • Remove all the team member

        Returns string

  • remove: ((entity: Entity, force: boolean) => string | string[])
      • (entity: Entity, force: boolean): string | string[]
      • Remove a team member

        Returns

        Parameters

        • entity: Entity

          The entity to remove

        • force: boolean

          If is set to false the command will do nothing if the entity is already in an other team

        Returns string | string[]

name: string
settings: teamOptions

Methods

  • Create the team

    Parameters

    • Optional force: boolean

      Delete other team named as this one before create this one

    Returns string[]

Generated using TypeDoc