mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-03 23:07:55 +01:00
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);
|
this.showHelp(sender);
|
||||||
return;
|
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()) {
|
if (this.worldManager.isMVWorld(worldName) && worldFile.exists()) {
|
||||||
sender.sendMessage(ChatColor.RED + "Multiverse already knows about this world!");
|
sender.sendMessage(ChatColor.RED + "Multiverse already knows about this world!");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user