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(
|
@ConfigItem(
|
||||||
position = 10,
|
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",
|
keyName = "trawlerNotification",
|
||||||
name = "Trawler activity notification",
|
name = "Trawler activity notification",
|
||||||
description = "Send a notification when fishing trawler activity drops below 15%."
|
description = "Send a notification when fishing trawler activity drops below 15%."
|
||||||
@@ -160,7 +171,7 @@ public interface FishingConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 11,
|
position = 12,
|
||||||
keyName = "trawlerTimer",
|
keyName = "trawlerTimer",
|
||||||
name = "Trawler timer in MM:SS",
|
name = "Trawler timer in MM:SS",
|
||||||
description = "Trawler Timer will display a more accurate timer in MM:SS format."
|
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);
|
spotOverlay.setHidden(false);
|
||||||
fishingSpotMinimapOverlay.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
|
@Subscribe
|
||||||
|
|||||||
Reference in New Issue
Block a user