Interface ParentCommand


public interface ParentCommand
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add a subCommand
    Get parent name
    Get available subCommands
    boolean
    Check if a parent command has the target sub-command
    void
    sendSubCommands(org.bukkit.entity.Player p)
    Send sub-commands list to a player This includes subCommands with showInList true only He can see only commands which he have permission
  • Method Details

    • hasSubCommand

      boolean hasSubCommand(String name)
      Check if a parent command has the target sub-command
    • addSubCommand

      void addSubCommand(SubCommand subCommand)
      Add a subCommand
    • sendSubCommands

      void sendSubCommands(org.bukkit.entity.Player p)
      Send sub-commands list to a player This includes subCommands with showInList true only He can see only commands which he have permission
    • getSubCommands

      List<SubCommand> getSubCommands()
      Get available subCommands
    • getName

      String getName()
      Get parent name