mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 21:17:00 +01:00
Implemented Server.getPluginCommand
This commit is contained in:
parent
b396707cb9
commit
ec0dde071d
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue