1
1
mirror of https://github.com/geekfrog/PermissionsTime.git synced 2025-09-06 02:56:58 +00:00

mysql支持,修改bug

This commit is contained in:
GeekFrog
2017-07-15 06:59:31 +08:00
parent 2959bf5cde
commit c884400781
7 changed files with 217 additions and 18 deletions

View File

@ -48,7 +48,7 @@ public class PluginCfg extends PluginConfig {
IS_METRICS = setGetDefault("metrics", true);
LANG = setGetDefault("lang", "zh-cn");
USE_MYSQL = setGetDefault("mysql.enable", false);
if (!USE_MYSQL) {
if (USE_MYSQL) {
SQL_HOSTNAME = setGetDefault("mysql.hostname", "localhost");
SQL_PORT = setGetDefault("mysql.port", 3306);
SQL_DATABASE = setGetDefault("mysql.database", "minecraft");