Archiviert
13
0

Implemented Server.getPluginCommand

Dieser Commit ist enthalten in:
Dinnerbone 2011-02-28 00:31:25 +00:00
Ursprung b396707cb9
Commit ec0dde071d

Datei anzeigen

@ -287,4 +287,14 @@ public final class CraftServer implements Server {
public ConsoleReader getReader() { public ConsoleReader getReader() {
return console.reader; return console.reader;
} }
public PluginCommand getPluginCommand(String name) {
Command command = commandMap.getCommand(name);
if (command instanceof PluginCommand) {
return (PluginCommand)command;
} else {
return null;
}
}
} }