Ejemplo n.º 1
0
 /**
  * Create a CommandInformation for a new command
  *
  * @param syntax Your syntax
  */
 public CommandInformation(String syntax) {
   this.syntax = syntax;
   try {
     processSyntax();
   } catch (CommandSyntaxException e) {
     e.printStackTrace();
   }
 }
Ejemplo n.º 2
0
 /**
  * Create a CommandInformation with permission and description for a new command
  *
  * @param syntax Your syntax
  * @param permission Your new permission
  * @param description Your description of your command
  */
 public CommandInformation(String syntax, String permission, String description) {
   this.permission = permission;
   this.syntax = syntax;
   this.description = description;
   try {
     processSyntax();
   } catch (CommandSyntaxException e) {
     e.printStackTrace();
   }
 }