have modules enable last in onEnable

This commit is contained in:
Taah 2022-05-05 17:30:37 -07:00
parent 842f96678d
commit b23b7c0c1b

View File

@ -114,8 +114,6 @@ public class Plex extends JavaPlugin
mongoConnection = new MongoConnection(); mongoConnection = new MongoConnection();
redisConnection = new RedisConnection(); redisConnection = new RedisConnection();
moduleManager.enableModules();
system = config.getString("system"); system = config.getString("system");
PlexLog.log("Attempting to connect to DB: {0}", plugin.config.getString("data.central.db")); PlexLog.log("Attempting to connect to DB: {0}", plugin.config.getString("data.central.db"));
@ -188,6 +186,7 @@ public class Plex extends JavaPlugin
PlexLog.log("Started " + serviceManager.serviceCount() + " services."); PlexLog.log("Started " + serviceManager.serviceCount() + " services.");
reloadPlayers(); reloadPlayers();
moduleManager.enableModules();
} }
@Override @Override