MVImport works, close #10

This commit is contained in:
Eric Stokes 2011-06-03 22:25:26 -04:00
parent 5233ab17c6
commit 7c595bd58b
2 changed files with 8 additions and 2 deletions

View File

@ -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...
*/

View File

@ -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);