Fix npe with dataManager

This commit is contained in:
Xephi
2014-09-19 02:15:59 +02:00
parent 7ba37d75c9
commit 2b02f130af
+3 -3
View File
@@ -226,6 +226,9 @@ public class AuthMe extends JavaPlugin {
break;
}
dataManager = new DataManager(this, database);
dataManager.start();
if (Settings.isCachingEnabled) {
database = new CacheDataSource(this, database);
}
@@ -291,9 +294,6 @@ public class AuthMe extends JavaPlugin {
// Start Email recall task if needed
recallEmail();
dataManager = new DataManager(this, database);
dataManager.start();
// Sponsor message
ConsoleLogger.info("[SPONSOR] AuthMe is sponsored and hook perfectly with server hosting VERYGAMES, rent your server for only 1.99$/months");
ConsoleLogger.info("[SPONSOR] Look Minecraft and other offers on www.verygames.net ! ");