Interface ScoreboardAdapter

All Known Subinterfaces:
DuelScoreboardAdapter, SpectatorScoreboardAdapter

public interface ScoreboardAdapter
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    hide(@NotNull org.bukkit.entity.Player player)
    Hides the scoreboard from the specified player.
    void
    show(@NotNull org.bukkit.entity.Player player, Object @NotNull ... args)
    Displays the scoreboard to the specified player.
  • Method Details

    • show

      void show(@NotNull @NotNull org.bukkit.entity.Player player, Object @NotNull ... args)
      Displays the scoreboard to the specified player.

      This method should be implemented to show the appropriate scoreboard for the player, based on the given arguments.

      Parameters:
      player - The player to display the scoreboard to.
      args - Additional arguments that can be used to customize the scoreboard display.
    • hide

      void hide(@NotNull @NotNull org.bukkit.entity.Player player)
      Hides the scoreboard from the specified player.

      This method should be implemented to remove or hide the scoreboard for the player.

      Parameters:
      player - The player to hide the scoreboard from.