From fae3d33a6c3c01d7d5eb935eee8fb0ccf0867a92 Mon Sep 17 00:00:00 2001 From: Rigby Date: Tue, 5 Apr 2011 22:26:38 +0100 Subject: [PATCH] Remove NULL from the seedStr default. Also some debug output for outputting the seed of a world. Ready to implement getSeed(); --- src/com/onarandombox/MultiverseCore/MultiverseCore.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/onarandombox/MultiverseCore/MultiverseCore.java b/src/com/onarandombox/MultiverseCore/MultiverseCore.java index bb18ae42..f65ab601 100644 --- a/src/com/onarandombox/MultiverseCore/MultiverseCore.java +++ b/src/com/onarandombox/MultiverseCore/MultiverseCore.java @@ -13,6 +13,7 @@ import org.bukkit.World; import org.bukkit.World.Environment; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; +import org.bukkit.craftbukkit.CraftWorld; import org.bukkit.entity.Player; import org.bukkit.event.Event; import org.bukkit.event.Event.Priority; @@ -258,7 +259,7 @@ public class MultiverseCore extends JavaPlugin { } // Grab the initial values from the config file. String environment = configWorlds.getString("worlds." + worldKey + ".environment", "NORMAL"); // Grab the Environment as a String. - String seedString = configWorlds.getString("worlds." + worldKey + ".seed", null); + String seedString = configWorlds.getString("worlds." + worldKey + ".seed", ""); Long seed = null; // Work out the Environment Environment env; @@ -301,9 +302,11 @@ public class MultiverseCore extends JavaPlugin { if (seed != null) { World world = getServer().createWorld(name, environment, seed); worlds.put(name, new MVWorld(world, configWorlds, this, seed)); // Place the World into the HashMap. + System.out.print("Seed - " + ((CraftWorld) world).getHandle().q.b()); } else { World world = getServer().createWorld(name, environment); worlds.put(name, new MVWorld(world, configWorlds, this, null)); // Place the World into the HashMap. + System.out.print("Seed - " + ((CraftWorld) world).getHandle().q.b()); } }