mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 19:46:21 +01:00
Delayed alias registration until postworld
This commit is contained in:
parent
22c28e593e
commit
b94bb27663
@ -126,17 +126,20 @@ public final class CraftServer implements Server {
|
|||||||
} else {
|
} else {
|
||||||
pluginFolder.mkdir();
|
pluginFolder.mkdir();
|
||||||
}
|
}
|
||||||
|
|
||||||
commandMap.registerServerAliases();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void enablePlugins(PluginLoadOrder type) {
|
public void enablePlugins(PluginLoadOrder type) {
|
||||||
Plugin[] plugins = pluginManager.getPlugins();
|
Plugin[] plugins = pluginManager.getPlugins();
|
||||||
|
|
||||||
for (Plugin plugin : plugins) {
|
for (Plugin plugin : plugins) {
|
||||||
if ((!plugin.isEnabled()) && (plugin.getDescription().getLoad() == type)) {
|
if ((!plugin.isEnabled()) && (plugin.getDescription().getLoad() == type)) {
|
||||||
loadPlugin(plugin);
|
loadPlugin(plugin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type == PluginLoadOrder.POSTWORLD) {
|
||||||
|
commandMap.registerServerAliases();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void disablePlugins() {
|
public void disablePlugins() {
|
||||||
|
Loading…
Reference in New Issue
Block a user