VitalScoreboard

Internal base class for all scoreboards.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val bukkitScoreboard: @NotNull Scoreboard
Link copied to clipboard
open override var id: UUID

Functions

Link copied to clipboard
fun addPlayer(player: SpigotPlayer, title: Supplier<String>? = null, lines: Supplier<List<String>>? = null)

Internal function; adds the given player to this scoreboard and updates it via update. This function will only update this scoreboard if both title and lines are set. If the given player is already in this scoreboard, this function does nothing.

Link copied to clipboard
fun addTeam(name: String, title: Supplier<String>? = null, lines: Supplier<List<String>>? = null, init: Consumer<Team>)

Internal function; adds a new team with the given name to this scoreboard. This function will only update this scoreboard if both title and lines are set. If the given team is already in this scoreboard, this function does nothing.

Link copied to clipboard
fun removePlayer(player: SpigotPlayer, title: Supplier<String>? = null, lines: Supplier<List<String>>? = null)

Internal function; removes the given player from this scoreboard and updates it via update. This function will only update this scoreboard if both title and lines are set. If the given player is not in this scoreboard, this function does nothing.

Link copied to clipboard
fun removeTeam(name: String, title: Supplier<String>? = null, lines: Supplier<List<String>>? = null)

Internal function; removes the team with the given name from this scoreboard. This function will only update this scoreboard if both title and lines are set. If the given team is not in this scoreboard, this function does nothing.

Link copied to clipboard
fun update(_title: Supplier<String>, _lines: Supplier<List<String>>): Objective

Updates this scoreboard with the given _title and _lines.