Interface DuelMenuProvider
- All Superinterfaces:
MenuProvider
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Opens the duel menu for the specified player, allowing them to select a target player for the duel.void
open
(org.bukkit.entity.Player player, org.bukkit.entity.Player target) Opens the duel menu to allow the specified player to initiate a duel with the target player.
-
Method Details
-
open
Opens the duel menu for the specified player, allowing them to select a target player for the duel.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 menu.args
- The target player that the player intends to duel.- Throws:
UnsupportedOperationException
- if arguments are not valid (missing target player).
-
open
void open(org.bukkit.entity.Player player, org.bukkit.entity.Player target) Opens the duel menu to allow the specified player to initiate a duel with the target player.- Parameters:
player
- The player opening the duel menu.target
- The target player for the duel.
-