mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-12-01 04:49:44 -05:00
Add Message
This commit is contained in:
1 parent
c477e26ec9
commit
98deefa396
1 file changed
+4
-2
@@ -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<Boolean>(this, "enabled", true).getOrSet();
|
||||
PERIOD = new ConfigSectionHelper<Integer>(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:",
|
||||
|
||||
Reference in new issue
Block a user