Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Delayed alias registration until postworld
Dieser Commit ist enthalten in:
Ursprung
22c28e593e
Commit
b94bb27663
@ -126,17 +126,20 @@ public final class CraftServer implements Server {
|
||||
} else {
|
||||
pluginFolder.mkdir();
|
||||
}
|
||||
|
||||
commandMap.registerServerAliases();
|
||||
}
|
||||
|
||||
public void enablePlugins(PluginLoadOrder type) {
|
||||
Plugin[] plugins = pluginManager.getPlugins();
|
||||
|
||||
for (Plugin plugin : plugins) {
|
||||
if ((!plugin.isEnabled()) && (plugin.getDescription().getLoad() == type)) {
|
||||
loadPlugin(plugin);
|
||||
}
|
||||
}
|
||||
|
||||
if (type == PluginLoadOrder.POSTWORLD) {
|
||||
commandMap.registerServerAliases();
|
||||
}
|
||||
}
|
||||
|
||||
public void disablePlugins() {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren