Package net.william278.husksync.command
Class BukkitCommand
java.lang.Object
net.william278.husksync.command.BukkitCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
public class BukkitCommand
extends Object
implements org.bukkit.command.CommandExecutor, org.bukkit.command.TabExecutor
Bukkit executor that implements and executes
CommandBase
s-
Field Summary
Modifier and TypeFieldDescriptionprotected net.william278.husksync.command.CommandBase
TheCommandBase
that will be executed -
Constructor Summary
ConstructorDescriptionBukkitCommand(net.william278.husksync.command.CommandBase command, BukkitHuskSync implementor)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args)
onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String alias, String[] args)
void
register(org.bukkit.command.PluginCommand pluginCommand)
Registers aPluginCommand
to this implementation
-
Field Details
-
command
protected final net.william278.husksync.command.CommandBase commandTheCommandBase
that will be executed
-
-
Constructor Details
-
BukkitCommand
public BukkitCommand(@NotNull net.william278.husksync.command.CommandBase command, @NotNull BukkitHuskSync implementor)
-
-
Method Details
-
register
public void register(@NotNull org.bukkit.command.PluginCommand pluginCommand)Registers aPluginCommand
to this implementation- Parameters:
pluginCommand
-PluginCommand
to register
-
onCommand
public boolean onCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args)- Specified by:
onCommand
in interfaceorg.bukkit.command.CommandExecutor
-
onTabComplete
@Nullable public List<String> onTabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String alias, @NotNull String[] args)- Specified by:
onTabComplete
in interfaceorg.bukkit.command.TabCompleter
-