do i really need this

This commit is contained in:
okx-code
2025-10-07 06:20:42 +01:00
parent 6dec2b55d0
commit a4b3a42c6e

View File

@@ -52,6 +52,11 @@ public class CivProxyPlugin {
private void loadConnection() {
CommentedConfigurationNode database = config.node("database");
try {
Class.forName("org.mariadb.jdbc.Driver");
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
HikariConfig config = new HikariConfig();
config.setJdbcUrl("jdbc:" + database.node("driver").getString("mysql") + "://" + database.node("host").getString("localhost") + ":" +
database.node("port").getInt(3306) + "/" + database.node("database").getString("minecraft"));