Merge branch 'master' of github.com:Multiverse/Multiverse-Core into new-tests

This commit is contained in:
main() 2012-01-11 16:44:59 +01:00
commit 8bab4ae606
2 changed files with 11 additions and 2 deletions

View File

@ -236,7 +236,16 @@ public class MVWorld implements MultiverseWorld {
*/ */
public boolean setActualKeepSpawnInMemory() { public boolean setActualKeepSpawnInMemory() {
// Ensure the memory setting is correct // Ensure the memory setting is correct
this.world.setKeepSpawnInMemory(this.getKnownProperty("memory", Boolean.class).getValue()); this.getCBWorld().setKeepSpawnInMemory(this.getKnownProperty("memory", Boolean.class).getValue());
return true;
}
/**
* Used by the active difficulty-property to set the "actual" property.
* @return True if the property was successfully set.
*/
public boolean setActualDifficulty() {
this.getCBWorld().setDifficulty(this.getKnownProperty("difficulty", Difficulty.class).getValue());
return true; return true;
} }

View File

@ -106,7 +106,7 @@ public class DifficultyConfigProperty implements MVActiveConfigProperty<Difficul
*/ */
@Override @Override
public String getMethod() { public String getMethod() {
return "setDifficulty"; return "setActualDifficulty";
} }
/** /**