diff --git a/eco-api/src/main/java/com/willfp/eco/core/EcoPlugin.java b/eco-api/src/main/java/com/willfp/eco/core/EcoPlugin.java index 7d66b34a..012d4484 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/EcoPlugin.java +++ b/eco-api/src/main/java/com/willfp/eco/core/EcoPlugin.java @@ -304,6 +304,10 @@ public abstract class EcoPlugin extends JavaPlugin implements PluginLike { this.color = props.getColor(); this.supportingExtensions = props.isSupportingExtensions(); + this.logger = Eco.getHandler().createLogger(this); + + this.getLogger().info("Initializing " + this.getColor() + this.getName()); + this.scheduler = Eco.getHandler().createScheduler(this); this.eventManager = Eco.getHandler().createEventManager(this); this.namespacedKeyFactory = Eco.getHandler().createNamespacedKeyFactory(this); @@ -311,7 +315,6 @@ public abstract class EcoPlugin extends JavaPlugin implements PluginLike { this.runnableFactory = Eco.getHandler().createRunnableFactory(this); this.extensionLoader = Eco.getHandler().createExtensionLoader(this); this.configHandler = Eco.getHandler().createConfigHandler(this); - this.logger = Eco.getHandler().createLogger(this); this.proxyFactory = this.proxyPackage.equalsIgnoreCase("") ? null : Eco.getHandler().createProxyFactory(this); this.langYml = this.createLangYml(); @@ -319,8 +322,6 @@ public abstract class EcoPlugin extends JavaPlugin implements PluginLike { Eco.getHandler().addNewPlugin(this); - this.getLogger().info("Initializing " + this.getColor() + this.getName()); - /* The minimum eco version check was moved here because it's very common to add a lot of code in the constructor of plugins; meaning that the plugin