Interface StatsMenuProvider

All Superinterfaces:
MenuProvider

public interface StatsMenuProvider extends MenuProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    open(org.bukkit.entity.Player player, Object @NotNull ... args)
    Opens the stats menu for the specified player, allowing them to view the statistics of a given target player.
    void
    open(org.bukkit.entity.Player player, String target)
    Opens the stats menu, allowing the player to view the statistics of a specific target player.
  • Method Details

    • open

      default void open(org.bukkit.entity.Player player, Object @NotNull ... args)
      Opens the stats menu for the specified player, allowing them to view the statistics of a given target player.

      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 stats menu.
      args - The arguments passed to the provider (should include a String target).
      Throws:
      UnsupportedOperationException - if arguments are not valid (missing target string).
    • open

      void open(org.bukkit.entity.Player player, String target)
      Opens the stats menu, allowing the player to view the statistics of a specific target player.
      Parameters:
      player - The player opening the stats menu.
      target - The target player's statistics to be displayed.