mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-19 14:51:27 +01:00
Implemented Server.getPluginCommand
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
170a0b4340
commit
6280efc753
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user