Rewrite the database system to have a proper ORM and migrations

This commit is contained in:
2026-05-19 02:02:55 -04:00
parent a508aa5aae
commit a980e26cc7
33 changed files with 1154 additions and 941 deletions
+6 -1
View File
@@ -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()