/** * 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(); } }
/** * 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(); } }