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

    Fields
    Modifier and Type
    Field
    Description
    protected net.william278.husksync.command.CommandBase
    The CommandBase that will be executed
  • Constructor Summary

    Constructors
    Constructor
    Description
    BukkitCommand​(net.william278.husksync.command.CommandBase command, BukkitHuskSync implementor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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 a PluginCommand to this implementation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • command

      protected final net.william278.husksync.command.CommandBase command
      The CommandBase 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 a PluginCommand 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 interface org.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 interface org.bukkit.command.TabCompleter