	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String areasInput;
		String seedInput;
		System.out.println("Areas to generate: ");
		System.out.println("Example: -4,-4,3,3;0,4,6,4");
		System.out.print("Input: ");
		areasInput = in.nextLine();
		System.out.println("");
		System.out.println("Seed for terrain generation:");
		System.out.println("Leave blank for random seed.");
		System.out.print("Input: ");
		seedInput = in.nextLine();
		in.close();
		AreaInputParser aip = new AreaInputParser(";", ",");
		ArrayList<Area> areas = null;
		try {
			 areas = aip.parseInput(areasInput);
		} catch (InvalidInputException e) {
			e.printStackTrace();
		}
		Util.deleteFile(mainDir);
		try {
			Util.copyFileFromJar(jar_mcserver_b173, genDir + File.separator + mcserver_b173);
			Util.copyFileFromJar(jar_mcserver_f152, conDir + File.separator + mcserver_f152);
			Util.copyFileFromJar(jar_serverproperties_b173, genDir + File.separator + serverproperties_b173);
			Util.copyFileFromJar(jar_levelDat_b173, genDirWorld + File.separator + levelDat_b173);
		} catch(FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		Generator generator = new Generator(seedInput);
		for(Area area : areas) {
			generator.generate(area);
		}
		Converter converter = new Converter();
		converter.convert(areas);
	}

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String areasInput;
		String seedInput;
		System.out.println("Areas to generate: ");
		System.out.println("Example: -4,-4,3,3;0,4,6,4");
		System.out.print("Input: ");
		areasInput = in.nextLine();
		System.out.println("");
		System.out.println("Seed for terrain generation:");
		System.out.println("Leave blank for random seed.");
		System.out.print("Input: ");
		seedInput = in.nextLine();
		in.close();
		AreaInputParser aip = new AreaInputParser(";", ",");
		ArrayList<Area> areas = null;
		try {
			 areas = aip.parseInput(areasInput);
		} catch (InvalidInputException e) {
			e.printStackTrace();
		}
		Util.deleteFile(mainDir);
		try {
			Util.copyFileFromJar(jar_mcserver_b173, genDir + File.separator + mcserver_b173);
			Util.copyFileFromJar(jar_mcserver_f152, conDir + File.separator + mcserver_f152);
			Util.copyFileFromJar(jar_serverproperties_b173, genDir + File.separator + serverproperties_b173);
			Util.copyFileFromJar(jar_levelDat_b173, genDirWorld + File.separator + levelDat_b173);
			Util.copyFileFromJar(jar_levelDat_b173, conDirWorld + File.separator + levelDat_b173);
		} catch(FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		Generator generator = new Generator(seedInput);
		for(Area area : areas) {
			generator.generate(area);
		}
		Converter converter = new Converter();
		converter.convert(areas);
	}
