Package net.william278.huskhomes.command
Class BukkitCommand
java.lang.Object
net.william278.huskhomes.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-
Constructor Summary
ConstructorDescriptionBukkitCommand(@NotNull net.william278.huskhomes.command.CommandBase command, @NotNull BukkitHuskHomes implementor)
-
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 alias, @NotNull String[] args)
void
register(@NotNull org.bukkit.command.PluginCommand pluginCommand)
Registers aPluginCommand
to this implementation
-
Constructor Details
-
BukkitCommand
public BukkitCommand(@NotNull @NotNull net.william278.huskhomes.command.CommandBase command, @NotNull @NotNull BukkitHuskHomes implementor)
-
-
Method Details
-
register
public void register(@NotNull @NotNull org.bukkit.command.PluginCommand pluginCommand)Registers aPluginCommand
to this implementation- Parameters:
pluginCommand
-PluginCommand
to register
-
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 alias, @NotNull @NotNull String[] args)- Specified by:
onTabComplete
in interfaceorg.bukkit.command.TabCompleter
-