MooCommands is a library which lets you create Command objects which represent text commands. Each Command object contains a piece of code which will run when the command is executed/fired for a given set of parameters.
MooCommands would could be used effectively in programs like IRC clients.
MooConsole depends on MooCommands.
com.moomoohk.MooCommands.Command
class. This will inherit the following abstract methods:String getCommand()
: Returns the String that matches this command. This method should only contain one line, a return statement. I.e. return "/help"
String getHelpMessage()
: Returns a String containing a message describing what this command doesString getUsage()
: Returns a String containing helpful usage information. This includes syntax and any parametersint getMaxParams()
: Returns an int representing the maximum amount of parameters this command takesint getMinParams()
: Returns an int representing the mainimum amount of parameters this command takesI really need to finish this page