mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
do i really need this
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user