mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-02-04 22:51:20 +01:00
Fix config reloading.
This commit is contained in:
parent
b9e3a5df0b
commit
e1feb5172c
@ -601,19 +601,13 @@ public class ArenaMasterImpl implements ArenaMaster
|
||||
public void reloadConfig() {
|
||||
boolean wasEnabled = isEnabled();
|
||||
if (wasEnabled) setEnabled(false);
|
||||
|
||||
for (Arena a : arenas) {
|
||||
a.forceEnd();
|
||||
}
|
||||
|
||||
loadSettings();
|
||||
loadClasses();
|
||||
loadArenas();
|
||||
|
||||
for (Arena arena : arenas) {
|
||||
Messenger.info("Loaded arena '" + arena.configName() + "'");
|
||||
}
|
||||
setEnabled(wasEnabled);
|
||||
plugin.reloadConfig();
|
||||
config = plugin.getConfig();
|
||||
initialize();
|
||||
if (wasEnabled) setEnabled(true);
|
||||
}
|
||||
|
||||
public void saveConfig() {
|
||||
|
Loading…
Reference in New Issue
Block a user