diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/nightmarezone/NightmareZoneConfig.java b/runelite-client/src/main/java/net/runelite/client/plugins/nightmarezone/NightmareZoneConfig.java index d3c505bd30..227ccf4066 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/nightmarezone/NightmareZoneConfig.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/nightmarezone/NightmareZoneConfig.java @@ -76,11 +76,22 @@ public interface NightmareZoneConfig extends Config return false; } + @ConfigItem( + keyName = "ultimateforcenotification", + name = "Ultimate Force notification", + description = "Toggles notifications when an ultimate force power-up appears", + position = 5 + ) + default boolean ultimateForceNotification() + { + return false; + } + @ConfigItem( keyName = "overloadnotification", name = "Overload notification", description = "Toggles notifications when your overload runs out", - position = 5 + position = 6 ) default boolean overloadNotification() { @@ -91,7 +102,7 @@ public interface NightmareZoneConfig extends Config keyName = "absorptionnotification", name = "Absorption notification", description = "Toggles notifications when your absorption points gets below your threshold", - position = 6 + position = 7 ) default boolean absorptionNotification() { @@ -102,7 +113,7 @@ public interface NightmareZoneConfig extends Config keyName = "absorptionthreshold", name = "Absorption Threshold", description = "The amount of absorption points to send a notification at", - position = 7 + position = 8 ) default int absorptionThreshold() { @@ -113,7 +124,7 @@ public interface NightmareZoneConfig extends Config keyName = "absorptioncoloroverthreshold", name = "Color above threshold", description = "Configures the color for the absorption widget when above the threshold", - position = 8 + position = 9 ) default Color absorptionColorAboveThreshold() { @@ -124,7 +135,7 @@ public interface NightmareZoneConfig extends Config keyName = "absorptioncolorbelowthreshold", name = "Color below threshold", description = "Configures the color for the absorption widget when below the threshold", - position = 9 + position = 10 ) default Color absorptionColorBelowThreshold() { diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/nightmarezone/NightmareZonePlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/nightmarezone/NightmareZonePlugin.java index ddbad3ec38..2aa674e068 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/nightmarezone/NightmareZonePlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/nightmarezone/NightmareZonePlugin.java @@ -153,6 +153,13 @@ public class NightmareZonePlugin extends Plugin notifier.notify(msg); } } + else if (msg.contains("Ultimate force")) + { + if (config.ultimateForceNotification()) + { + notifier.notify(msg); + } + } } }