public void loadConfig() {
		while (!getDataFolder().exists()) {
			saveConfig();
		}
		File file = getDataFolder();

		String filename = file + "/config.cfg";
		config = new Properties();

		try {
			config.load(new FileInputStream(filename));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

		WIDTH = Integer.parseInt(config.getProperty("Width"));
		HEIGHT = Integer.parseInt(config.getProperty("Height"));

		setGameWidth(WIDTH);
		setGameHeight(HEIGHT);
		Console.log("Loaded configurations");
	}