From 7da2c848067f5ae8e880aba2e2dea0d353554400 Mon Sep 17 00:00:00 2001 From: Simon Rigby Date: Tue, 1 Mar 2011 18:03:28 +0000 Subject: [PATCH] Useless spam, quite obvious the default World will be loaded before the plugin. --- src/com/onarandombox/MultiVerseCore/MultiVerseCore.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/com/onarandombox/MultiVerseCore/MultiVerseCore.java b/src/com/onarandombox/MultiVerseCore/MultiVerseCore.java index 54d59b46..1c07a908 100644 --- a/src/com/onarandombox/MultiVerseCore/MultiVerseCore.java +++ b/src/com/onarandombox/MultiVerseCore/MultiVerseCore.java @@ -157,7 +157,12 @@ public class MultiVerseCore extends JavaPlugin { // You never know these days... bloody NPE's. if(lworlds != null && lworlds.size()>0){ for (World world : lworlds){ - log.info(logPrefix + "Loading existing World - '" + world.getName() + "' - " + world.getEnvironment().toString()); // Output to the Log that wea re loading a world, specify the name and environment type. + // If it's the default world we should probably ignore outputting it as it will just be spam. + if((getServer().getWorlds().get(0).getName().equals(world.getName()))){ + continue; + } + + log.info(logPrefix + "Loading existing World - '" + world.getName() + "' - " + world.getEnvironment().toString()); // Output to the Log that we are loading a world, specify the name and environment type. worlds.put(world.getName(), new MVWorld(world, MultiVerseCore.configWorlds, this, false)); // Place the World into the HashMap. count++; // Increment the World Count.