fishing: Add minnows flying fish notification (#13126)

This commit is contained in:
Anjaneya Bhardwaj
2021-02-09 14:01:11 -05:00
committed by GitHub
parent c3e96d72f1
commit 8d543933c9
2 changed files with 17 additions and 1 deletions

View File

@@ -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."

View File

@@ -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