score

abstract fun score(name: String, objective: String): ComponentBuilder

Appends a score component with the specified player name and objective.

Return

this component builder for chaining

Parameters

name

the player name whose score to display

objective

the scoreboard objective name


open fun score(name: String, objective: String, styler: Styler.() -> Unit): ComponentBuilder

Appends a score component with the specified player name and objective and applies additional configuration.

Return

this component builder for chaining

Parameters

name

the player name whose score to display

objective

the scoreboard objective name

styler

the styler to apply