Implemented Server.getPluginCommand

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2011-02-28 00:31:25 +00:00
parent 170a0b4340
commit 6280efc753

View File

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