From bc20ecbe6032663484acfe022f4c1a7af945c3fa Mon Sep 17 00:00:00 2001 From: Jeremy Wood Date: Wed, 12 Jul 2017 22:58:33 -0400 Subject: [PATCH] Hotfix for #1836. --- .../onarandombox/MultiverseCore/commands/ImportCommand.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/onarandombox/MultiverseCore/commands/ImportCommand.java b/src/main/java/com/onarandombox/MultiverseCore/commands/ImportCommand.java index be81297b..83ff72cf 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/commands/ImportCommand.java +++ b/src/main/java/com/onarandombox/MultiverseCore/commands/ImportCommand.java @@ -131,6 +131,11 @@ public class ImportCommand extends MultiverseCommand { File worldFile = new File(this.plugin.getServer().getWorldContainer(), worldName); + if (!checkIfIsWorld(worldFile)) { + sender.sendMessage(ChatColor.RED + "Sorry, but that does not look like a world!"); + return; + } + String generator = CommandHandler.getFlag("-g", args); boolean useSpawnAdjust = true; for (String s : args) {