From 78d2d242f209a9319da99294d1607456085b88d5 Mon Sep 17 00:00:00 2001 From: Rigby Date: Wed, 13 Jul 2011 11:32:40 +0100 Subject: [PATCH] Support for the new UUID Duplicate checks, createWorld can now return null if the world was a duplicate of an already loaded world. --- src/com/onarandombox/MultiverseCore/MultiverseCore.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/onarandombox/MultiverseCore/MultiverseCore.java b/src/com/onarandombox/MultiverseCore/MultiverseCore.java index 17a92f5d..5a1a02dd 100644 --- a/src/com/onarandombox/MultiverseCore/MultiverseCore.java +++ b/src/com/onarandombox/MultiverseCore/MultiverseCore.java @@ -303,6 +303,12 @@ public class MultiverseCore extends JavaPlugin { log(Level.INFO, "Loading World & Settings - '" + name + "' - " + env); } } + + if (world == null) { + log(Level.SEVERE, "Failed to Create/Load the world '" + name + "'"); + return false; + } + MVWorld mvworld = new MVWorld(world, this.configWorlds, this, seed, generator); this.worldPurger.purgeWorld(null, mvworld); this.worlds.put(name, mvworld);