Interface DuelMenuProvider

All Superinterfaces:
MenuProvider

public interface DuelMenuProvider extends MenuProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    open(org.bukkit.entity.Player player, Object @NotNull ... args)
    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

      default void open(org.bukkit.entity.Player player, Object @NotNull ... args)
      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 interface MenuProvider
      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.