cleanup the update display message, and remove debug line

This commit is contained in:
Nick Minkler 2013-12-24 13:41:08 -08:00
parent c94c85d16b
commit 25916757e5

View File

@ -145,15 +145,21 @@ public class Vault extends JavaPlugin {
if (getServer().getConsoleSender().hasPermission("vault.update")) { if (getServer().getConsoleSender().hasPermission("vault.update")) {
try { try {
newVersion = updateCheck(currentVersion); newVersion = updateCheck(currentVersion);
log.info("Vault version from web: " + newVersion); log.info("***** Vault Version Checker ***** ");
if (newVersion > currentVersion) { if (newVersion > currentVersion) {
log.warning("Vault " + newVersionTitle + " is out! You are running: Vault " + currentVersion); log.warning("Stable Version: " + newVersionTitle + " is out!");
log.warning("Current Version: " + currentVersionTitle);
log.warning("Update Vault at: http://dev.bukkit.org/server-mods/vault"); log.warning("Update Vault at: http://dev.bukkit.org/server-mods/vault");
} else if (currentVersion > newVersion) { } else if (currentVersion > newVersion) {
log.info("Vault Stable Version: " + newVersionTitle + " You are on a development or experimental build, Happy testing!"); log.info("Stable Version: " + newVersionTitle);
log.info("Current Version: " + currentVersionTitle);
log.info("You are on a development or experimental build, Happy testing!");
} else { } else {
log.info("Vault is already up to date, thanks for staying current!"); log.info("Stable Version: " + newVersionTitle);
log.info("Current Version: " + currentVersionTitle);
log.info("No new version available");
} }
log.info("**********************************");
} catch (Exception e) { } catch (Exception e) {
// ignore exceptions // ignore exceptions
} }