Class CommandHandler.Silent

java.lang.Object
de.marcely.bedwars.api.command.CommandHandler.Silent
All Implemented Interfaces:
CommandHandler
Enclosing interface:
CommandHandler

public static class CommandHandler.Silent extends Object implements CommandHandler
The default command handler that effectively does nothing
  • Field Details

  • Method Details

    • getPlugin

      public Plugin getPlugin()
      Description copied from interface: CommandHandler
      Returns the plugin that created this handler
      Specified by:
      getPlugin in interface CommandHandler
      Returns:
      The plugin of this handler
    • onRegister

      public void onRegister(SubCommand cmd)
      Description copied from interface: CommandHandler
      Gets called whenever the command is getting added as handler
      Specified by:
      onRegister in interface CommandHandler
      Parameters:
      cmd - The command to which the handler has been added to
    • onFire

      public void onFire(CommandSender sender, String fullUsage, String[] args)
      Description copied from interface: CommandHandler
      Gets called whenever someone executes the command
      Specified by:
      onFire in interface CommandHandler
      Parameters:
      sender - The person who executed the command
      fullUsage - The full usage, including the label and everything
      args - Passed arguments to this command
    • onAutocomplete

      public List<String> onAutocomplete(CommandSender sender, String[] args)
      Description copied from interface: CommandHandler
      Gets called whenever someone autocompletes (presses tab) on the command
      Specified by:
      onAutocomplete in interface CommandHandler
      Parameters:
      sender - The person who did the autocomplete
      args - The given arguments
      Returns:
      What shall be shown to the player as options. Returning null will display all players