Package dev.oumaimaa.kawaiiapi.command
Interface CommandList
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for customizing how subcommands are displayed to users.
Allows plugins to define their own command list formatting and presentation logic.
Example implementations might include:
- Paginated command lists
- Categorized commands by functionality
- Interactive command menus
- Permission-filtered displays
- Version:
- 1.0
- Author:
- KawaiiDevelopment
-
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayCommandList(@NotNull org.bukkit.command.CommandSender sender, @NotNull List<SubCommand> subCommandList) Displays a list of subcommands to the command sender.
-
Method Details
-
displayCommandList
void displayCommandList(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull List<SubCommand> subCommandList) Displays a list of subcommands to the command sender. This method is called when a player executes the core command without any arguments.- Parameters:
sender- The entity that executed the commandsubCommandList- A list of all available subcommands for this core command
-