From 04366dd50eb1d5022d52f20b8090aca562776e0b Mon Sep 17 00:00:00 2001 From: Eric Stokes Date: Fri, 13 Jan 2012 17:48:15 -0700 Subject: [PATCH] Fix Properties not loading properly Closes #397 This also fixes Active Properties not saving properly --- .../com/onarandombox/MultiverseCore/MVWorld.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java b/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java index 22272601..a91775d7 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java +++ b/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java @@ -204,6 +204,15 @@ public class MVWorld implements MultiverseWorld { } catch (IllegalArgumentException e) { 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()); Object returnVal = method.invoke(this); if (returnVal instanceof Boolean) { + if ((Boolean) returnVal) { + this.saveConfig(); + } return (Boolean) returnVal; } else { + this.saveConfig(); return true; } } catch (NoSuchMethodException e) {