Interface SpectatorScoreboardAdapter

All Superinterfaces:
ScoreboardAdapter

public interface SpectatorScoreboardAdapter extends ScoreboardAdapter
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    show(@NotNull org.bukkit.entity.Player player, Object @NotNull ... args)
    Displays the scoreboard for a spectator during a duel.
    void
    show(@NotNull org.bukkit.entity.Player spectator, @NotNull org.bukkit.entity.Player player, @NotNull DuelSession session, @NotNull String kit)
    Displays the scoreboard for a spectator during a duel.

    Methods inherited from interface com.xyrisdev.cloud.api.scoreboard.ScoreboardAdapter

    hide
  • Method Details

    • show

      default void show(@NotNull @NotNull org.bukkit.entity.Player player, Object @NotNull ... args)
      Displays the scoreboard for a spectator during a duel.

      This method verifies that the required arguments are passed, including a target player, DuelSession, and kit name, and then displays the spectator scoreboard for the player.

      Specified by:
      show in interface ScoreboardAdapter
      Parameters:
      player - The spectator player to display the scoreboard to.
      args - The arguments for the scoreboard (should include target player, DuelSession, and kit name).
      Throws:
      IllegalArgumentException - if the arguments are not valid (e.g., missing target player, DuelSession, or kit).
    • show

      void show(@NotNull @NotNull org.bukkit.entity.Player spectator, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull DuelSession session, @NotNull @NotNull String kit)
      Displays the scoreboard for a spectator during a duel.

      This method should be implemented to show the actual scoreboard for a spectator, including the target player and duel session.

      Parameters:
      spectator - The player who is spectating the duel.
      player - The player who is currently in the duel.
      session - The current duel session.
      kit - The kit name used in the duel.