Skip to content

Commit

Permalink
Player Data fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IamTheDefender committed Apr 5, 2024
1 parent c40b580 commit e424f40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,7 @@ public void connect(){
int maxpoolsize = plugin.getConfig().getInt("mysql.maxpoolsize", 50);

HikariConfig config = new HikariConfig();
try{
config.setDriverClassName("com.mysql.cj.jdbc.Driver");
}catch (Exception e){
config.setDataSourceClassName("com.mysql.jdbc.jdbc2.optional.MysqlDataSource");
}

config.setDriverClassName("com.mysql.cj.jdbc.Driver");
config.setJdbcUrl("jdbc:mysql://" + host + ":" + port + "/" + database + "?autoReconnect=true" + "&enabledTLSProtocols=TLSv1.2" + "&useSSL=" + ssl + "&allowPublicKeyRetrieval=true");
config.setPoolName("BW1058Cosmetics-MySQLPool");
config.setMaximumPoolSize(maxpoolsize);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,8 @@ public static void loadLibraries() {
Library slf4j = new Library.Builder().groupId("org{}slf4j").artifactId("slf4j-api").version("2.0.7").build();
libraryManager.addMavenCentral();
libraryManager.addJitPack();
if(VersionSupportUtil.isHigherThan("1.8")){
libraryManager.loadLibrary(mysql);
}
libraryManager.loadLibrary(mysql);

checkAndLoad(hCore, libraryManager);
libraryManager.loadLibrary(hikariCP);
libraryManager.loadLibrary(fastutil);
Expand Down

0 comments on commit e424f40

Please sign in to comment.