aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/TheMod.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-11-14 18:39:14 -0500
committerbowser0000 <bowser0000@gmail.com>2020-11-14 18:39:14 -0500
commitdb03ce14fde088c15dc366e70d937338de8721dc (patch)
treec2e0a9e1c0db3a154b014277a12ca43e11d41e39 /src/main/java/me/Danker/TheMod.java
parentaded900013d319231220996e4b6fd5190e471b4c (diff)
downloadSkyblockMod-db03ce14fde088c15dc366e70d937338de8721dc.tar.gz
SkyblockMod-db03ce14fde088c15dc366e70d937338de8721dc.tar.bz2
SkyblockMod-db03ce14fde088c15dc366e70d937338de8721dc.zip
Add option to hide heal messages
Diffstat (limited to 'src/main/java/me/Danker/TheMod.java')
-rw-r--r--src/main/java/me/Danker/TheMod.java25
1 files changed, 16 insertions, 9 deletions
diff --git a/src/main/java/me/Danker/TheMod.java b/src/main/java/me/Danker/TheMod.java
index 4131a39..bed2b69 100644
--- a/src/main/java/me/Danker/TheMod.java
+++ b/src/main/java/me/Danker/TheMod.java
@@ -398,6 +398,22 @@ public class TheMod
if (message.contains(":")) return;
+ // Spirit Sceptre
+ if (!tc.sceptreMessages && message.contains("Your Spirit Sceptre hit ")) {
+ event.setCanceled(true);
+ return;
+ }
+ // Midas Staff
+ if (!tc.midasStaffMessages && message.contains("Your Molten Wave hit ")) {
+ event.setCanceled(true);
+ return;
+ }
+ // Heals
+ if (!tc.healMessages && message.contains(" health!") && (message.contains("You healed ") || message.contains(" healed you for "))) {
+ event.setCanceled(true);
+ return;
+ }
+
if (ToggleCommand.oruoToggled && Utils.inDungeons) {
// Don't set every answer to wrong with this question
if (message.contains("What SkyBlock year is it?")) triviaAnswers = null;
@@ -997,15 +1013,6 @@ public class TheMod
if (tc.spiritBearAlerts && message.contains("The Spirit Bear has appeared!")) {
Utils.createTitle(EnumChatFormatting.DARK_PURPLE + "SPIRIT BEAR", 2);
}
-
- // Spirit Sceptre
- if (!tc.sceptreMessages && message.contains("Your Spirit Sceptre hit ")) {
- event.setCanceled(true);
- }
- // Midas Staff
- if (!tc.midasStaffMessages && message.contains("Your Molten Wave hit ")) {
- event.setCanceled(true);
- }
}
@SubscribeEvent