private String getFile(String link) {
		String download = null;
		try {
			// Open a connection to the page
			URL url = new URL(link);
			URLConnection urlConn = url.openConnection();
			InputStreamReader inStream = new InputStreamReader(
					urlConn.getInputStream());
			BufferedReader buff = new BufferedReader(inStream);

			int counter = 0;
			String line;
			while ((line = buff.readLine()) != null) {
				counter++;
				// Search for the download link
				if (line.contains("<li class=\"user-action user-action-download\">")) {
					// Get the raw link
					download = line.split("<a href=\"")[1]
							.split("\">Download</a>")[0];
				}
				// Search for size
				else if (line.contains("<dt>Size</dt>")) {
					sizeLine = counter + 1;
				} else if (counter == sizeLine) {
					String size = line.replaceAll("<dd>", "").replaceAll(
							"</dd>", "");
					multiplier = size.contains("MiB") ? 1048576 : 1024;
					size = size.replace(" KiB", "").replace(" MiB", "");
					totalSize = (long) (Double.parseDouble(size) * multiplier);
				}
			}
			urlConn = null;
			inStream = null;
			buff.close();
			buff = null;
		} catch (Exception ex) {
			ex.printStackTrace();
			plugin.getLogger()
					.warning(
							"The auto-updater tried to contact dev.bukkit.org, but was unsuccessful.");
			result = Updater.UpdateResult.FAIL_DBO;
			return null;
		}
		return download;
	}