Tell user when creating a duplicate world

Fixes #921
This commit is contained in:
Eric Stokes 2012-10-21 14:49:56 -06:00
parent b45a4cf20a
commit 35709f5389
1 changed files with 6 additions and 1 deletions

View File

@ -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;