From 62c23c7dc45b1bb1477dd0803652c811a6f9f66a Mon Sep 17 00:00:00 2001 From: GeekFrog Date: Sun, 16 Jul 2017 19:10:11 +0800 Subject: [PATCH] fix bug --- .../mc/permissionstime/config/PluginCfg.java | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/main/gg/frog/mc/permissionstime/config/PluginCfg.java b/src/main/gg/frog/mc/permissionstime/config/PluginCfg.java index ec197ac..e693443 100644 --- a/src/main/gg/frog/mc/permissionstime/config/PluginCfg.java +++ b/src/main/gg/frog/mc/permissionstime/config/PluginCfg.java @@ -50,15 +50,13 @@ public class PluginCfg extends PluginConfig { IS_METRICS = setGetDefault("metrics", true); LANG = setGetDefault("lang", "de"); USE_MYSQL = setGetDefault("mysql.enable", false); - if (USE_MYSQL) { - SQL_SERVER_ID = setGetDefault("mysql.serverId", "default"); - SQL_HOSTNAME = setGetDefault("mysql.hostname", "localhost"); - SQL_PORT = setGetDefault("mysql.port", 3306); - SQL_DATABASE = setGetDefault("mysql.database", "minecraft"); - SQL_USERNAME = setGetDefault("mysql.username", "user"); - SQL_PASSWORD = setGetDefault("mysql.password", "123456"); - SQL_TABLE_PREFIX = setGetDefault("mysql.tablePrefix", "pt_"); - } + SQL_SERVER_ID = setGetDefault("mysql.serverId", "default"); + SQL_HOSTNAME = setGetDefault("mysql.hostname", "localhost"); + SQL_PORT = setGetDefault("mysql.port", 3306); + SQL_DATABASE = setGetDefault("mysql.database", "minecraft"); + SQL_USERNAME = setGetDefault("mysql.username", "user"); + SQL_PASSWORD = setGetDefault("mysql.password", "123456"); + SQL_TABLE_PREFIX = setGetDefault("mysql.tablePrefix", "pt_"); } }