Fix config reloading.
This commit is contained in:
@@ -601,19 +601,13 @@ public class ArenaMasterImpl implements ArenaMaster
|
|||||||
public void reloadConfig() {
|
public void reloadConfig() {
|
||||||
boolean wasEnabled = isEnabled();
|
boolean wasEnabled = isEnabled();
|
||||||
if (wasEnabled) setEnabled(false);
|
if (wasEnabled) setEnabled(false);
|
||||||
|
|
||||||
for (Arena a : arenas) {
|
for (Arena a : arenas) {
|
||||||
a.forceEnd();
|
a.forceEnd();
|
||||||
}
|
}
|
||||||
|
plugin.reloadConfig();
|
||||||
loadSettings();
|
config = plugin.getConfig();
|
||||||
loadClasses();
|
initialize();
|
||||||
loadArenas();
|
if (wasEnabled) setEnabled(true);
|
||||||
|
|
||||||
for (Arena arena : arenas) {
|
|
||||||
Messenger.info("Loaded arena '" + arena.configName() + "'");
|
|
||||||
}
|
|
||||||
setEnabled(wasEnabled);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void saveConfig() {
|
public void saveConfig() {
|
||||||
|
|||||||
Reference in New Issue
Block a user