From 8d585b58cb569ebd3aad24d552bc71baeed34d00 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 3 Jul 2022 16:45:44 +0100 Subject: [PATCH] Fixed initializing text --- eco-api/src/main/java/com/willfp/eco/core/EcoPlugin.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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