diff --git a/src/main/java/de/rayzs/pat/api/storage/config/settings/UpdateSection.java b/src/main/java/de/rayzs/pat/api/storage/config/settings/UpdateSection.java index 1281ebd1..52e6bd75 100644 --- a/src/main/java/de/rayzs/pat/api/storage/config/settings/UpdateSection.java +++ b/src/main/java/de/rayzs/pat/api/storage/config/settings/UpdateSection.java @@ -5,12 +5,13 @@ import de.rayzs.pat.utils.configuration.helper.ConfigSectionHelper; import de.rayzs.pat.utils.configuration.helper.MultipleMessagesHelper; import java.util.Arrays; +import java.util.Collections; public class UpdateSection extends ConfigStorage { public boolean ENABLED; public int PERIOD; - public MultipleMessagesHelper NOTIFICATION; + public MultipleMessagesHelper NOTIFICATION, UPDATED; public UpdateSection() { super("updater"); @@ -21,7 +22,8 @@ public class UpdateSection extends ConfigStorage { super.load(); ENABLED = new ConfigSectionHelper(this, "enabled", true).getOrSet(); PERIOD = new ConfigSectionHelper(this, "period", 10000).getOrSet(); - NOTIFICATION = new MultipleMessagesHelper(this, "notification", Arrays.asList( + UPDATED = new MultipleMessagesHelper(this, "updated", Collections.singletonList("&aYou are using the newest version! ^^")); + NOTIFICATION = new MultipleMessagesHelper(this, "outdated", Arrays.asList( "&8[&4ProAntiTab&8] &cThere is a new version available! (%newest_version%)", "&8[&4ProAntiTab&8] &cYou are still using the %current_version%.", "&8[&4ProAntiTab&8] &cGet the newest version here:",