Changed runCommand to look in world container directory (defined in bukkit.yml) instead of in the server folder when attempting to load world files.

This commit is contained in:
4am 2011-12-08 19:19:17 -05:00
parent 77ced857ea
commit af439b678e

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;