diff --git a/src/main/java/com/gmail/nossr50/mcMMO.java b/src/main/java/com/gmail/nossr50/mcMMO.java index 3591cb88d..ccaea6895 100644 --- a/src/main/java/com/gmail/nossr50/mcMMO.java +++ b/src/main/java/com/gmail/nossr50/mcMMO.java @@ -289,22 +289,18 @@ public class mcMMO extends JavaPlugin { Updater updater = new Updater(this, "mcmmo", mcmmo, UpdateType.NO_DOWNLOAD, false); if (updater.getResult() != UpdateResult.UPDATE_AVAILABLE) { + this.updateAvailable = false; return; } if (updater.getLatestVersionString().contains("-beta") && !Config.getInstance().getPreferBeta()) { + this.updateAvailable = false; return; } - updateCheckerCallback(true); - } - - public void updateCheckerCallback(boolean updateAvailable) { - this.updateAvailable = updateAvailable; - if (updateAvailable) { - getLogger().info(LocaleLoader.getString("UpdateChecker.outdated")); - getLogger().info(LocaleLoader.getString("UpdateChecker.newavailable")); - } + this.updateAvailable = true; + getLogger().info(LocaleLoader.getString("UpdateChecker.outdated")); + getLogger().info(LocaleLoader.getString("UpdateChecker.newavailable")); } private void loadConfigFiles() {