Made the auto-update-checker suggest channels to server administrators if they're upgrading past their preferred channel.

This commit is contained in:
Nathan Adams
2012-03-01 16:04:18 +00:00
parent a5be079797
commit eb934c760d
5 changed files with 101 additions and 2 deletions

View File

@@ -175,6 +175,7 @@ public final class CraftServer implements Server {
updater = new AutoUpdater(new BukkitDLUpdaterService(configuration.getString("auto-updater.host")), getLogger(), configuration.getString("auto-updater.preferred-channel"));
updater.setEnabled(configuration.getBoolean("auto-updater.enabled"));
updater.setSuggestChannels(configuration.getBoolean("auto-updater.suggest-channels"));
updater.getOnBroken().addAll(configuration.getStringList("auto-updater.on-broken"));
updater.getOnUpdate().addAll(configuration.getStringList("auto-updater.on-update"));
updater.check(serverVersion);