Class CommandInfo

java.lang.Object
io.github.projectunified.craftcommand.CommandInfo

public class CommandInfo extends Object
Information about a command or subcommand execution.
  • Constructor Details

    • CommandInfo

      public CommandInfo(List<String> path, String usage, String description)
      Constructs a CommandInfo.
      Parameters:
      path - the subcommand path
      usage - the usage syntax
      description - the description
  • Method Details

    • getPath

      public List<String> getPath()
      Gets the subcommand path.
      Returns:
      the path
    • getUsage

      public String getUsage()
      Gets the usage syntax.
      Returns:
      the usage syntax
    • getDescription

      public String getDescription()
      Gets the description.
      Returns:
      the description