Interface ParentCommand


  • public interface ParentCommand
    • Method Summary

      Modifier and Type Method Description
      void addSubCommand​(SubCommand subCommand)
      Add a subCommand
      java.lang.String getName()
      Get parent name
      java.util.List<SubCommand> getSubCommands()
      Get available subCommands
      boolean hasSubCommand​(java.lang.String name)
      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 Detail

      • hasSubCommand

        boolean hasSubCommand​(java.lang.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

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

        java.lang.String getName()
        Get parent name