From 98deefa3968d530353e8dc095d2b7e14e22cda87 Mon Sep 17 00:00:00 2001 From: RayzsYT <51991564+RayzsYT@users.noreply.github.com> Date: Mon, 20 May 2024 00:29:24 +0200 Subject: [PATCH] Add Message --- .../pat/api/storage/config/settings/UpdateSection.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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:",