Interface StatsMenuProvider
- All Superinterfaces:
MenuProvider
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Opens the stats menu for the specified player, allowing them to view the statistics of a given target player.void
Opens the stats menu, allowing the player to view the statistics of a specific target player.
-
Method Details
-
open
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 interfaceMenuProvider
- 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
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.
-