|
|
|
@ -49,7 +49,6 @@ public class ConfigLoader {
|
|
|
|
|
|
|
|
|
|
public static void loadSettings(ConfigurationNode loadedConfig) throws IllegalArgumentException {
|
|
|
|
|
ConfigurationNode config = copyDefaults(loadedConfig);
|
|
|
|
|
//ConfigurationNode config = copyDefaults(loadedConfig);
|
|
|
|
|
|
|
|
|
|
Settings.language = getConfigString(config, "en-gb", "language");
|
|
|
|
|
|
|
|
|
@ -58,6 +57,7 @@ public class ConfigLoader {
|
|
|
|
|
Settings.redisHost = getConfigString(config, "localhost", "redis_settings", "host");
|
|
|
|
|
Settings.redisPort = getConfigInt(config, 6379, "redis_settings", "port");
|
|
|
|
|
Settings.redisPassword = getConfigString(config, "", "redis_settings", "password");
|
|
|
|
|
Settings.redisSSL = getConfigBoolean(config, false, "redis_settings", "use_ssl");
|
|
|
|
|
|
|
|
|
|
Settings.dataStorageType = Settings.DataStorageType.valueOf(getConfigString(config, "sqlite", "data_storage_settings", "database_type").toUpperCase());
|
|
|
|
|
if (Settings.dataStorageType == Settings.DataStorageType.MYSQL) {
|
|
|
|
|