mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-23 08:41:21 +01:00
MVImport works, close #10
This commit is contained in:
parent
5233ab17c6
commit
7c595bd58b
@ -430,6 +430,14 @@ public class MultiverseCore extends JavaPlugin {
|
||||
addWorld(name, environment, null);
|
||||
}
|
||||
|
||||
public boolean removeWorld(String name) {
|
||||
if(worlds.containsKey(name)) {
|
||||
worlds.remove(name);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* What happens when the plugin gets disabled...
|
||||
*/
|
||||
|
@ -31,8 +31,6 @@ public class ImportCommand extends BaseCommand {
|
||||
|
||||
Environment env = plugin.getEnvFromString(args[1], sender);
|
||||
|
||||
// TODO: What if the folder does not exist but MV knows about the world?
|
||||
|
||||
if (new File(worldName).exists() && env != null) {
|
||||
sender.sendMessage(ChatColor.AQUA + "Starting world import...");
|
||||
plugin.addWorld(worldName, env);
|
||||
|
Loading…
Reference in New Issue
Block a user