Delayed alias registration until postworld

This commit is contained in:
Dinnerbone 2011-06-24 00:57:46 +01:00
parent 22c28e593e
commit b94bb27663

View File

@ -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() {