fishing: Add minnows flying fish notification (#13126)
This commit is contained in:
committed by
GitHub
parent
c3e96d72f1
commit
8d543933c9
@@ -150,6 +150,17 @@ public interface FishingConfig extends Config
|
||||
|
||||
@ConfigItem(
|
||||
position = 10,
|
||||
keyName = "flyingFishNotification",
|
||||
name = "Flying fish notification",
|
||||
description = "Send a notification when a flying fish spawns on your fishing spot."
|
||||
)
|
||||
default boolean flyingFishNotification()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
position = 11,
|
||||
keyName = "trawlerNotification",
|
||||
name = "Trawler activity notification",
|
||||
description = "Send a notification when fishing trawler activity drops below 15%."
|
||||
@@ -160,7 +171,7 @@ public interface FishingConfig extends Config
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
position = 11,
|
||||
position = 12,
|
||||
keyName = "trawlerTimer",
|
||||
name = "Trawler timer in MM:SS",
|
||||
description = "Trawler Timer will display a more accurate timer in MM:SS format."
|
||||
|
||||
@@ -215,6 +215,11 @@ public class FishingPlugin extends Plugin
|
||||
spotOverlay.setHidden(false);
|
||||
fishingSpotMinimapOverlay.setHidden(false);
|
||||
}
|
||||
|
||||
if (event.getMessage().equals("A flying fish jumps up and eats some of your minnows!") && config.flyingFishNotification())
|
||||
{
|
||||
notifier.notify("A flying fish is eating your minnows!");
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
|
||||
Reference in New Issue
Block a user