SurfAutoUpdatablePlayerScoreboard

SurfAutoUpdatablePlayerScoreboard is an interface representing an auto-updatable scoreboard that includes all online players as viewers. This interface extends the SurfAutoUpdatableScoreboard interface.

Functions

Link copied to clipboard
abstract override fun addViewer(viewer: Player)

Adds a viewer to the scoreboard. In this implementation, this method does nothing and prints a warning to the console because all online players are automatically added as viewers.

Link copied to clipboard
abstract fun disable()

Disables the SurfScoreboard. This method closes the scoreboard. It also resets the animations and the enabled flag.

Link copied to clipboard
abstract fun enable()

Creates the scoreboard. This method must be called before any viewers are added.

Link copied to clipboard
abstract override fun removeViewer(viewer: Player)

Removes a viewer from the scoreboard. In this implementation, this method does nothing and prints a warning to the console because the scoreboard is always visible to all online players.

Link copied to clipboard
@ApiStatus.Internal
abstract override fun update()

Updates the scoreboard.