Fix worlds not being saved correctly.

This commit is contained in:
Eric Stokes 2011-06-26 10:01:40 -06:00
parent 4edecaaf6f
commit ca8a017d32
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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.");
}