private void saveDefaults(CommentedYamlConfiguration configuration, ConfigNode[] defaultNodes) throws IOException {
		for(ConfigNode node : defaultNodes) {
			configuration.set(node.getNode(), node.getDefaultValue());
			List<String> comments = node.getComments();
			if(!comments.isEmpty())
				configuration.addComment(node.getNode(), comments.toArray(new String[comments.size()]));
		}
		configuration.save(file);
	}