diff options
| author | 2stinkysocks <54291521+2stinkysocks@users.noreply.github.com> | 2022-05-07 07:29:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-07 16:29:16 +0200 |
| commit | 470db06d91e1d90466e5fa1064eae4bb7318c5ad (patch) | |
| tree | 92c7cc21ae8d80adc060047582d9d4842c29f6bb /src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Notifications.java | |
| parent | 7e3b1ede9fac5964cba900f889594af5ba235393 (diff) | |
| download | notenoughupdates-470db06d91e1d90466e5fa1064eae4bb7318c5ad.tar.gz notenoughupdates-470db06d91e1d90466e5fa1064eae4bb7318c5ad.tar.bz2 notenoughupdates-470db06d91e1d90466e5fa1064eae4bb7318c5ad.zip | |
Booster Cookie Warning (#128)
* add booster cookie warning
* requested changes
* i forgot to check if the feature is enabled
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Notifications.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Notifications.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Notifications.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Notifications.java index fd934330..9007db88 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Notifications.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Notifications.java @@ -2,6 +2,7 @@ package io.github.moulberry.notenoughupdates.options.seperateSections; import com.google.gson.annotations.Expose; import io.github.moulberry.notenoughupdates.core.config.annotations.ConfigEditorBoolean; +import io.github.moulberry.notenoughupdates.core.config.annotations.ConfigEditorSlider; import io.github.moulberry.notenoughupdates.core.config.annotations.ConfigOption; public class Notifications { @@ -29,4 +30,24 @@ public class Notifications { ) @ConfigEditorBoolean public boolean doOamNotif = true; + + @Expose + @ConfigOption( + name = "Booster Cookie Warning", + desc = "Warning when a booster cookie is about to expire" + ) + @ConfigEditorBoolean + public boolean doBoosterNotif = false; + + @Expose + @ConfigOption( + name = "Booster Cookie Warning Minutes", + desc = "Change the minimum time required for the Booster Cookie warning to activate" + ) + @ConfigEditorSlider( + minValue = 10, + maxValue = 5760, + minStep = 25 + ) + public int boosterCookieWarningMins = 1440; } |
