Reload correctly. Fix #554

This commit is contained in:
DNx5 2016-02-24 22:41:09 +07:00
parent f22bc4f395
commit 1d1605314a
2 changed files with 4 additions and 6 deletions

View File

@ -145,8 +145,6 @@ public final class Settings {
denyTabcompleteBeforeLogin = load(RestrictionSettings.DENY_TABCOMPLETE_BEFORE_LOGIN);
hideTablistBeforeLogin = load(RestrictionSettings.HIDE_TABLIST_BEFORE_LOGIN);
plugin.checkProtocolLib();
passwordMaxLength = load(SecuritySettings.MAX_PASSWORD_LENGTH);
backupWindowsPath = configFile.getString("BackupSystem.MysqlWindowsPath", "C:\\Program Files\\MySQL\\MySQL Server 5.1\\");
isStopEnabled = configFile.getBoolean("Security.SQLProblem.stopServer", true);

View File

@ -23,13 +23,13 @@ public class Spawn extends CustomConfiguration {
private Spawn() {
super(new File(Settings.PLUGIN_FOLDER, "spawn.yml"));
reload();
load();
save();
spawnPriority = Settings.spawnPriority.split(",");
}
public static void reload() {
getInstance().load();
getInstance().save();
spawnPriority = Settings.spawnPriority.split(",");
spawn = new Spawn();
}
/**