From ca8a017d3228c6f9881154e0b6a92f69066aacaf Mon Sep 17 00:00:00 2001 From: Eric Stokes Date: Sun, 26 Jun 2011 10:01:40 -0600 Subject: [PATCH] Fix worlds not being saved correctly. --- src/com/onarandombox/MultiverseCore/MVWorld.java | 3 +-- src/com/onarandombox/MultiverseCore/MultiverseCore.java | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/onarandombox/MultiverseCore/MVWorld.java b/src/com/onarandombox/MultiverseCore/MVWorld.java index 988cde96..f0170ff2 100644 --- a/src/com/onarandombox/MultiverseCore/MVWorld.java +++ b/src/com/onarandombox/MultiverseCore/MVWorld.java @@ -8,7 +8,6 @@ import org.bukkit.World.Environment; import org.bukkit.generator.ChunkGenerator; import org.bukkit.util.config.Configuration; -@SuppressWarnings("unused") public class MVWorld { private MultiverseCore plugin; // Hold the Plugin Instance. @@ -79,7 +78,7 @@ public class MVWorld { this.setRealMobBehaviors(); - config.setProperty("worlds." + this.name + ".environment", this.environment); + config.setProperty("worlds." + this.name + ".environment", this.environment.toString()); config.setProperty("worlds." + this.name + ".generatorString",generatorString); if (seed != null) { config.setProperty("worlds." + this.name + ".seed", this.seed); diff --git a/src/com/onarandombox/MultiverseCore/MultiverseCore.java b/src/com/onarandombox/MultiverseCore/MultiverseCore.java index 1fa6e861..a09e74fd 100644 --- a/src/com/onarandombox/MultiverseCore/MultiverseCore.java +++ b/src/com/onarandombox/MultiverseCore/MultiverseCore.java @@ -666,7 +666,8 @@ public class MultiverseCore extends JavaPlugin { cancelQueuedCommand(sender); this.queuedCommands.add(new QueuedCommand(methodName, args, paramTypes, sender, Calendar.getInstance(), this, success, fail)); sender.sendMessage("The command " + ChatColor.RED + commandName + ChatColor.WHITE + " has been halted due to the fact that it could break something!"); - sender.sendMessage("If you still wish to execute " + ChatColor.RED + commandName + ChatColor.WHITE + ", please type: " + ChatColor.GREEN + "/mvconfirm " + ChatColor.GOLD + "YES"); + sender.sendMessage("If you still wish to execute " + ChatColor.RED + commandName + ChatColor.WHITE); + sender.sendMessage("please type: " + ChatColor.GREEN + "/mvconfirm"); sender.sendMessage(ChatColor.GREEN + "/mvconfirm" + ChatColor.WHITE + " will only be available for 10 seconds."); }