Class MenuCommand
java.lang.Object
ua.mcchickenstudio.opencreative.commands.CommandHandler
ua.mcchickenstudio.opencreative.commands.MenuCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
MenuCommand
This command responsible for opening recommended worlds browser menu.Available: For all players.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonExecute(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, String[] args) Executes command for sender.onTab(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String alias, @NotNull String[] args) Returns list of tab completions, that can suggest arguments for command sender, or null.Methods inherited from class CommandHandler
onCommand, onTabCompleteModifier and TypeMethodDescriptionfinal booleanonCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args) onTabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String alias, @NotNull String[] args)
-
Constructor Details
-
MenuCommand
public MenuCommand()
-
-
Method Details
-
onExecute
public void onExecute(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, String[] args) Description copied from class:CommandHandlerExecutes command for sender.- Specified by:
onExecutein classCommandHandler- Parameters:
sender- sender of command, can be player or console.command- command, that was executed.label- label of command (name of command after slash /).args- arguments of command.
-
onTab
@Nullable public @Nullable List<String> onTab(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String alias, @NotNull @NotNull String[] args) Description copied from class:CommandHandlerReturns list of tab completions, that can suggest arguments for command sender, or null.- Specified by:
onTabin classCommandHandler- Parameters:
sender- sender of command.command- command, that was requested.alias- label of command (name of command after slash /).args- arguments of command.- Returns:
- list of suggestions for arguments, or null.
-