mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 11:15:57 -07:00
Implemented Server.getPluginCommand
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user