Make sure plugin onLoad is really called onLoad. This fixes regression #822 from when we implemented plugin depends.
This commit is contained in:
		| @@ -179,7 +179,7 @@ public class PluginManager | ||||
|         return plugins.get( name ); | ||||
|     } | ||||
|  | ||||
|     public void loadAndEnablePlugins() | ||||
|     public void loadPlugins() | ||||
|     { | ||||
|         Map<PluginDescription, Boolean> pluginStatuses = new HashMap<>(); | ||||
|         for ( Map.Entry<String, PluginDescription> entry : toLoad.entrySet() ) | ||||
| @@ -192,7 +192,10 @@ public class PluginManager | ||||
|         } | ||||
|         toLoad.clear(); | ||||
|         toLoad = null; | ||||
|     } | ||||
|  | ||||
|     public void enablePlugins() | ||||
|     { | ||||
|         for ( Plugin plugin : plugins.values() ) | ||||
|         { | ||||
|             try | ||||
|   | ||||
| @@ -194,11 +194,13 @@ public class BungeeCord extends ProxyServer | ||||
|  | ||||
|         pluginsFolder.mkdir(); | ||||
|         pluginManager.detectPlugins( pluginsFolder ); | ||||
|  | ||||
|         pluginManager.loadPlugins(); | ||||
|         config.load(); | ||||
|  | ||||
|         isRunning = true; | ||||
|  | ||||
|         pluginManager.loadAndEnablePlugins(); | ||||
|         pluginManager.enablePlugins(); | ||||
|  | ||||
|         connectionThrottle = new ConnectionThrottle( config.getThrottle() ); | ||||
|         startListeners(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 md_5
					md_5