Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Updater {
- public static final Updater INSTANCE = new Updater();
- public void runCheck() throws IOException {
- if(WebUtils.get("<pastebin>").contains("your newest build")) {
- System.out.println("Newest version!");
- } else {
- System.out.println("Downloading newest version");
- downloadJAR();
- }
- }
- public void downloadJAR() throws MalformedURLException, IOException {
- FileUtils.copyURLToFile(new URL("<url to jar>"), Fever.INSTANCE.getJAR());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement