Merge pull request #298 from 4am/master

Fixed Importing from a world container directory which is not the default
This commit is contained in:
Eric Stokes 2011-12-08 19:35:32 -08:00
commit fe52040b48
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ public class ImportCommand extends MultiverseCommand {
this.showHelp(sender);
return;
}
File worldFile = new File(this.plugin.getServerFolder(), worldName);
File worldFile = new File(this.plugin.getServer().getWorldContainer(), worldName);
if (this.worldManager.isMVWorld(worldName) && worldFile.exists()) {
sender.sendMessage(ChatColor.RED + "Multiverse already knows about this world!");
return;