Class HelpCommandHandler

java.lang.Object
de.marcely.bedwars.api.command.HelpCommandHandler
All Implemented Interfaces:
CommandHandler, CommandHandlerWrappedSender

public abstract class HelpCommandHandler extends Object implements CommandHandlerWrappedSender
  • Constructor Details

    • HelpCommandHandler

      public HelpCommandHandler()
  • Method Details

    • onRegister

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

      public void onFire(CommandSenderWrapper sender, String fullUsage, String[] args)
      Description copied from interface: CommandHandlerWrappedSender
      Gets called whenever someone executes the command
      Specified by:
      onFire in interface CommandHandlerWrappedSender
      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(CommandSenderWrapper sender, String[] args)
      Description copied from interface: CommandHandlerWrappedSender
      Gets called whenever someone autocompletes (presses tab) on the command
      Specified by:
      onAutocomplete in interface CommandHandlerWrappedSender
      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