Give the update messages without exceptions

This commit is contained in:
libraryaddict 2014-05-05 19:53:16 +12:00
parent 6c0a08e95c
commit 19f895667a

View File

@ -25,10 +25,12 @@ public class UpdateChecker {
if (version == null) {
version = getBukkitVersion();
}
if (version != null) {
if (checkHigher(currentVersion, version)) {
latestVersion = version;
}
}
}
/**
* Asks bukkit for the version
@ -48,8 +50,7 @@ public class UpdateChecker {
}
}
} catch (Exception e) {
System.out.print("[LibsDisguises] Failed to check for a update on bukkit.");
e.printStackTrace();
System.out.print("[LibsDisguises] Failed to check for a update on bukkit. " + e.getMessage());
}
return null;
}
@ -74,7 +75,6 @@ public class UpdateChecker {
}
} catch (Exception ex) {
System.out.print("[LibsDisguises] Failed to check for a update on spigot. Now checking bukkit..");
ex.printStackTrace();
}
return null;
}