Class AdvancedCommandAdapter
java.lang.Object
de.eldoria.eldoutilities.commands.command.AdvancedCommand
de.eldoria.eldoutilities.commands.command.AdvancedCommandAdapter
- All Implemented Interfaces:
CommandRoute
,org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
public class AdvancedCommandAdapter
extends AdvancedCommand
implements org.bukkit.command.TabExecutor
Wraps a
AdvancedCommand
into a TabExecutor
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onCommand
(@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 label, @NotNull String[] args) static AdvancedCommandAdapter
wrap
(org.bukkit.plugin.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
public static AdvancedCommandAdapter wrap(org.bukkit.plugin.Plugin plugin, AdvancedCommand advancedCommand) -
onCommand
public boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args) - Specified by:
onCommand
in interfaceorg.bukkit.command.CommandExecutor
-
onTabComplete
@Nullable public @Nullable List<String> onTabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args) - Specified by:
onTabComplete
in interfaceorg.bukkit.command.TabCompleter
-