Interface DuelReqestMenuProvider

All Superinterfaces:
MenuProvider

public interface DuelReqestMenuProvider extends MenuProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    open(org.bukkit.entity.Player player, DuelRequest request)
    Opens the duel request menu, allowing the player to view and interact with a specific duel request.
    default void
    open(org.bukkit.entity.Player player, Object @NotNull ... args)
    Opens the duel request menu for the specified player, allowing them to accept or deny a duel request.
  • Method Details

    • open

      default void open(org.bukkit.entity.Player player, Object @NotNull ... args)
      Opens the duel request menu for the specified player, allowing them to accept or deny a duel request.

      If the provided arguments are invalid (missing or incorrect type), an exception will be thrown.

      Specified by:
      open in interface MenuProvider
      Parameters:
      player - The player opening the duel request menu.
      args - The arguments passed to the provider (should include a DuelRequest object).
      Throws:
      UnsupportedOperationException - if arguments are not valid (missing DuelRequest object).
    • open

      void open(org.bukkit.entity.Player player, DuelRequest request)
      Opens the duel request menu, allowing the player to view and interact with a specific duel request.
      Parameters:
      player - The player opening the duel request menu.
      request - The duel request to be accepted or denied.