Add ultimate force notification trigger to NMZ plugin (#5790)
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -153,6 +153,13 @@ public class NightmareZonePlugin extends Plugin
|
||||
notifier.notify(msg);
|
||||
}
|
||||
}
|
||||
else if (msg.contains("Ultimate force"))
|
||||
{
|
||||
if (config.ultimateForceNotification())
|
||||
{
|
||||
notifier.notify(msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user