mirror of
https://github.com/plexusorg/Plex.git
synced 2026-06-04 21:46:55 +00:00
Rewrite the database system to have a proper ORM and migrations
This commit is contained in:
@@ -112,7 +112,7 @@ public class Plex extends JavaPlugin
|
||||
|
||||
playerCache = new PlayerCache();
|
||||
|
||||
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.db.name"));
|
||||
try
|
||||
{
|
||||
PlexUtils.testConnections();
|
||||
@@ -226,6 +226,11 @@ public class Plex extends JavaPlugin
|
||||
this.getServer().getMessenger().unregisterOutgoingPluginChannel(this);
|
||||
|
||||
moduleManager.disableModules();
|
||||
|
||||
if (sqlConnection != null)
|
||||
{
|
||||
sqlConnection.close();
|
||||
}
|
||||
}
|
||||
|
||||
private void generateWorlds()
|
||||
|
||||
Reference in New Issue
Block a user