Interface DuelReqestMenuProvider
- All Superinterfaces:
MenuProvider
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Opens the duel request menu for the specified player, allowing them to accept or deny a duel request.
-
Method Details
-
open
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 interfaceMenuProvider
- 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
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.
-