Interface DuelScoreboardAdapter

All Superinterfaces:
ScoreboardAdapter

public interface DuelScoreboardAdapter extends ScoreboardAdapter
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    show(@NotNull org.bukkit.entity.Player player, @NotNull DuelSession session, @NotNull String kit)
    Displays the scoreboard for the specified player during a duel.
    default void
    show(@NotNull org.bukkit.entity.Player player, Object @NotNull ... args)
    Displays the scoreboard for the specified player 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 the specified player during a duel.

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

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

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

      This method should be implemented to show the actual duel scoreboard for the player.

      Parameters:
      player - The player to display the scoreboard to.
      session - The current duel session.
      kit - The kit name used in the duel.