Interface HoneypotSubCommand

All Known Implementing Classes:
HoneypotCreate, HoneypotGUI, HoneypotHelp, HoneypotHistory, HoneypotInfo, HoneypotList, HoneypotLocate, HoneypotReload, HoneypotRemove

public interface HoneypotSubCommand
  • Method Details

    • getName

      String getName()
      Gets the name of the command
      Returns:
      The String name
    • perform

      void perform(org.bukkit.entity.Player p, String[] args) throws IOException
      Performs the command
      Parameters:
      p - The Player running the command
      args - Any arguments to pass
      Throws:
      IOException - Throws if any IO actions fail inside the perform command (Such as DB calls)
    • getSubcommands

      List<String> getSubcommands(org.bukkit.entity.Player p, String[] args)
      Gets all subcommands of the main command if any (Such as with the create or remove command)
      Parameters:
      p - The Player running the command
      args - Any arguments to pass
      Returns:
      A list of all subcommands as strings
    • getRequiredPermissions

      List<HoneypotPermission> getRequiredPermissions()
      Gets the required permissions to run the command. May be multiple
      Returns:
      A list of all subcommands as strings