Class ScoreboardObjectiveBeta

Contains objectives and participants for the scoreboard.

Hierarchy

  • ScoreboardObjective

Constructors

Properties

displayName: string

Remarks

Returns the player-visible name of this scoreboard objective.

Throws

This property can throw when used.

id: string

Remarks

Identifier of the scoreboard objective.

Throws

This property can throw when used.

Methods

  • Returns ScoreboardIdentity[]

    Remarks

    Returns all objective participant identities.

    This function can't be called in read-only mode.

    Throws

    This function can throw errors.

  • Parameters

    Returns number

    Remarks

    Returns a specific score for a participant.

    This function can't be called in read-only mode.

    Throws

    This function can throw errors.

  • Returns ScoreboardScoreInfo[]

    Remarks

    Returns specific scores for this objective for all participants.

    This function can't be called in read-only mode.

    Throws

    This function can throw errors.

  • Parameters

    • participant: ScoreboardIdentity

      Participant to remove from being tracked with this objective.

    Returns boolean

    Remarks

    Removes a participant from this scoreboard objective.

    This function can't be called in read-only mode.

    Throws

    This function can throw errors.

  • Parameters

    • participant: ScoreboardIdentity

      Identity of the participant.

    • score: number

      New value of the score.

    Returns boolean

    Remarks

    Sets a score for a participant.

    This function can't be called in read-only mode.

    Throws

    This function can throw errors.