From a502a479b8f1ebf7baec33f39ef34afbab47fb2b Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Tue, 6 Oct 2015 21:04:06 +0200 Subject: [PATCH] Fix compatibility --- src/main/java/fr/xephi/authme/AuthMe.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/fr/xephi/authme/AuthMe.java b/src/main/java/fr/xephi/authme/AuthMe.java index 23c556c8f..be4c104b8 100644 --- a/src/main/java/fr/xephi/authme/AuthMe.java +++ b/src/main/java/fr/xephi/authme/AuthMe.java @@ -73,9 +73,9 @@ import fr.xephi.authme.settings.Spawn; public class AuthMe extends JavaPlugin { private static AuthMe authme; + private static Server server; + private Logger authmeLogger; - private final Server server = getServer(); - private Logger authmeLogger = Logger.getLogger("AuthMe"); public Management management; public NewAPI api; public SendMailSSL mail; @@ -96,7 +96,7 @@ public class AuthMe extends JavaPlugin { public CombatTagPlus combatTagPlus; public AuthMeInventoryPacketAdapter inventoryProtector; - // Manager + // Module manager private ModuleManager moduleManager; // TODO: Create Manager for fields below @@ -124,6 +124,8 @@ public class AuthMe extends JavaPlugin { @Override public void onEnable() { // Set the Instance + server = getServer(); + authmeLogger = Logger.getLogger("AuthMe"); authme = this; // TODO: split the plugin in more modules