mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-25 20:16:06 +01:00
Fix Properties not loading properly
Closes #397 This also fixes Active Properties not saving properly
This commit is contained in:
parent
dc0121509a
commit
04366dd50e
@ -204,6 +204,15 @@ public class MVWorld implements MultiverseWorld {
|
|||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
this.plugin.log(Level.FINER, "Permissions nodes were already added for " + this.name);
|
this.plugin.log(Level.FINER, "Permissions nodes were already added for " + this.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sync all active settings.
|
||||||
|
this.setActualPVP();
|
||||||
|
this.verifyScaleSetProperly();
|
||||||
|
this.setActualKeepSpawnInMemory();
|
||||||
|
this.setActualDifficulty();
|
||||||
|
this.setActualGameMode();
|
||||||
|
this.setActualSpawn();
|
||||||
|
this.syncMobs();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -549,8 +558,12 @@ public class MVWorld implements MultiverseWorld {
|
|||||||
Method method = this.getClass().getMethod(property.getMethod());
|
Method method = this.getClass().getMethod(property.getMethod());
|
||||||
Object returnVal = method.invoke(this);
|
Object returnVal = method.invoke(this);
|
||||||
if (returnVal instanceof Boolean) {
|
if (returnVal instanceof Boolean) {
|
||||||
|
if ((Boolean) returnVal) {
|
||||||
|
this.saveConfig();
|
||||||
|
}
|
||||||
return (Boolean) returnVal;
|
return (Boolean) returnVal;
|
||||||
} else {
|
} else {
|
||||||
|
this.saveConfig();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} catch (NoSuchMethodException e) {
|
} catch (NoSuchMethodException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user