private String downloadUpdate(String url, File file) throws Exception {
		if (file.isDirectory()) {
			if (!file.delete()) {
				throw new Exception("Unable to delete plugins/" + dataFolder.getName() + "/GetPerms.jar/");
			}
		}

		if (file.exists()) {
			file.delete();
		}

		return plugin.downloadFile(url, temporaryDownloadFile);
	}