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:
parent
77ced857ea
commit
af439b678e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue