public static void loadConfig(YamlConfiguration config) {
		Configuration defaults = new YamlConfiguration();
		defaults.set("saveTotalTime", StopwatchVars.getSaveTotalTime());
		defaults.set("savePlayerTime", StopwatchVars.getSavePlayerTime());
		defaults.set("info", StopwatchVars.getDefaultInfo());
		config.setDefaults(defaults);

		if (StopwatchVars.CONFIG_FILE.exists()) {
			try {
				config.load(StopwatchVars.CONFIG_FILE);
			} catch (FileNotFoundException e1) {
				e1.printStackTrace();
			} catch (IOException e1) {
				e1.printStackTrace();
			} catch (InvalidConfigurationException e1) {
				e1.printStackTrace();
			}

			if (config.isSet("saveTotalTime")) {
				StopwatchVars.setSaveTotalTime(config
						.getBoolean("saveTotalTime"));
			} else {
				try {
					config.save(StopwatchVars.CONFIG_FILE);
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			if (config.isSet("savePlayerTime")) {
				StopwatchVars.setSavePlayerTime(config
						.getBoolean("savePlayerTime"));
			}
			if (config.isSet("info")) {
				StopwatchVars.setInfo(config.getString("info"));
			}
		} else {
			try {
				StopwatchVars.CONFIG_FILE.createNewFile();
				config.save(StopwatchVars.CONFIG_FILE);
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}