Implemented Playerdata DB Syncing

This commit is contained in:
Sn0wStorm
2020-01-29 15:39:02 +01:00
parent 00f541dafe
commit 1266111f8a
11 changed files with 184 additions and 28 deletions
+2 -3
View File
@@ -80,7 +80,6 @@ public class BConfig {
//MySQL
public static String sqlHost, sqlPort, sqlDB;
private static String sqlUser, sqlPW;
public static SQLSync sqlSync;
public static boolean sqlDrunkSync;
@@ -345,9 +344,9 @@ public class BConfig {
sqlDrunkSync = sqlCfg.getBoolean("syncDrunkeness");
sqlHost = sqlCfg.getString("host", null);
sqlPort = sqlCfg.getString("port", null);
sqlUser = sqlCfg.getString("user", null);
sqlDB = sqlCfg.getString("database", null);
sqlPW = sqlCfg.getString("password", null);
String sqlUser = sqlCfg.getString("user", null);
String sqlPW = sqlCfg.getString("password", null);
sqlSync = new SQLSync();
if (!sqlSync.init(sqlUser, sqlPW)) {