Tweaks to command system to allow setting executors via plugins (no more ambiguous onCommand in plugins)

This commit is contained in:
Dinnerbone
2011-02-28 00:30:59 +00:00
parent caa5cc9325
commit 4fa84d995c
7 changed files with 48 additions and 39 deletions

View File

@@ -31,4 +31,12 @@ public interface CommandMap {
* Clears all registered commands.
*/
public void clearCommands();
/**
* Gets the command registered to the specified name
*
* @param name Name of the command to retrieve
* @return Command with the specified name
*/
public Command getCommand(String name);
}