mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Implemented Server.getPluginCommand
This commit is contained in:
1 parent
b396707cb9
commit
ec0dde071d
1 file changed
+10
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user