From 4cefee5be7d8595042a6752f044df7268fd6754d Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Fri, 17 Jun 2011 23:23:34 -0400 Subject: [PATCH] Added world seed display to 'Preparing level' log message for each world --- .../java/net/minecraft/server/MinecraftServer.java | 10 ++++++---- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 5 +++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index bdd733c82d..549e337c9b 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -216,10 +216,12 @@ public class MinecraftServer implements Runnable, ICommandListener { short short1 = 196; long k = System.currentTimeMillis(); - for (int l = 0; l < this.worlds.size(); ++l) { // CraftBukkit - log.info("Preparing start region for level " + l); - // if (l == 0 || this.propertyManager.getBoolean("allow-nether", true)) { // CraftBukkit - WorldServer worldserver = this.worlds.get(l); // CraftBukkit + // CraftBukkit start + for (int l = 0; l < this.worlds.size(); ++l) { + // if (l == 0 || this.propertyManager.getBoolean("allow-nether", true)) { + WorldServer worldserver = this.worlds.get(l); + log.info("Preparing start region for level " + l + " (Seed: " + worldserver.getSeed() + ")"); + // CraftBukkit end ChunkCoordinates chunkcoordinates = worldserver.getSpawn(); for (int i1 = -short1; i1 <= short1 && this.isRunning; i1 += 16) { diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 2ac7c59a1e..af90ed4d60 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -95,10 +95,10 @@ public final class CraftServer implements Server { configuration.getString("database.password", "walrus"); configuration.getString("database.driver", "org.sqlite.JDBC"); configuration.getString("database.isolation", "SERIALIZABLE"); - + configuration.getString("settings.update-folder", "update"); configuration.getInt("settings.spawn-radius", 16); - + if (configuration.getNode("aliases") == null) { configuration.setProperty("aliases.icanhasbukkit", "version"); } @@ -401,6 +401,7 @@ public final class CraftServer implements Server { } pluginManager.callEvent(new WorldInitEvent(internal.getWorld())); + System.out.print("Preparing start region for level " + (console.worlds.size() -1) + " (Seed: " + internal.getSeed() + ")"); short short1 = 196; long i = System.currentTimeMillis();