Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 21:10:17 +01:00
Implemented Server.getPluginCommand
Dieser Commit ist enthalten in:
Ursprung
b396707cb9
Commit
ec0dde071d
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren