Class AdvancedCommandAdapter
java.lang.Object
de.eldoria.eldoutilities.commands.command.AdvancedCommand
de.eldoria.eldoutilities.commands.command.AdvancedCommandAdapter
- All Implemented Interfaces:
CommandRoute
,CommandExecutor
,TabCompleter
,TabExecutor
Wraps a
AdvancedCommand
into a TabExecutor
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onCommand
(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) onTabComplete
(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) static AdvancedCommandAdapter
wrap
(Plugin plugin, AdvancedCommand advancedCommand) Methods inherited from class de.eldoria.eldoutilities.commands.command.AdvancedCommand
commandRoute, getPlayerFromSender, handleCommandError, localizer, messageSender, meta, meta, plugin, tabCompleteRoute
-
Method Details
-
wrap
-
onCommand
public boolean onCommand(@NotNull @NotNull CommandSender sender, @NotNull @NotNull Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args) - Specified by:
onCommand
in interfaceCommandExecutor
-
onTabComplete
@Nullable public @Nullable List<String> onTabComplete(@NotNull @NotNull CommandSender sender, @NotNull @NotNull Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args) - Specified by:
onTabComplete
in interfaceTabCompleter
-