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 CommandBases
  • Constructor Summary

    Constructors
    Constructor
    Description
    BukkitCommand​(@NotNull net.william278.huskhomes.command.CommandBase command, @NotNull BukkitHuskHomes implementor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onCommand​(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args)
     
    @Nullable List<String>
    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 a PluginCommand to this implementation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 a PluginCommand 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 interface org.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 interface org.bukkit.command.TabCompleter