From 35709f5389c9db3b1233176e341278c4c0bc9ce8 Mon Sep 17 00:00:00 2001 From: Eric Stokes Date: Sun, 21 Oct 2012 14:49:56 -0600 Subject: [PATCH] Tell user when creating a duplicate world Fixes #921 --- .../MultiverseCore/commands/CreateCommand.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/onarandombox/MultiverseCore/commands/CreateCommand.java b/src/main/java/com/onarandombox/MultiverseCore/commands/CreateCommand.java index 776d5f42..9fe8b85b 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/commands/CreateCommand.java +++ b/src/main/java/com/onarandombox/MultiverseCore/commands/CreateCommand.java @@ -67,7 +67,12 @@ public class CreateCommand extends MultiverseCommand { } } - if (worldFile.exists() || this.worldManager.isMVWorld(worldName)) { + if (this.worldManager.isMVWorld(worldName)) { + sender.sendMessage(ChatColor.RED + "Multiverse cannot create " + ChatColor.GOLD +ChatColor.UNDERLINE + "another" + ChatColor.RESET + ChatColor.RED + " world named " + worldName); + return; + } + + if (worldFile.exists()) { sender.sendMessage(ChatColor.RED + "A Folder/World already exists with this name!"); sender.sendMessage(ChatColor.RED + "If you are confident it is a world you can import with /mvimport"); return;