From f4ccc48f058967c7e0714789f4a350aec9e27b40 Mon Sep 17 00:00:00 2001 From: alexia Date: Sun, 26 Nov 2023 19:52:01 +0100 Subject: Don't hide messages from Jacob (#728) Don't hide messages from Jacob #728 --- .../skyhanni/config/features/garden/visitor/VisitorConfig.java | 2 +- .../hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/garden/visitor/VisitorConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/garden/visitor/VisitorConfig.java index d010b11d3..7c93d7526 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/garden/visitor/VisitorConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/garden/visitor/VisitorConfig.java @@ -60,7 +60,7 @@ public class VisitorConfig { public boolean hypixelArrivedMessage = true; @Expose - @ConfigOption(name = "Hide Chat", desc = "Hide chat messages from the visitors in garden. (Except Beth and Spaceman)") + @ConfigOption(name = "Hide Chat", desc = "Hide chat messages from the visitors in garden. (Except Beth, Jacob and Spaceman)") @ConfigEditorBoolean @FeatureToggle public boolean hideChat = true; diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt index 4995decc8..60b1d041d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt @@ -436,6 +436,7 @@ class GardenVisitorFeatures { private fun hideVisitorMessage(message: String) = visitorChatMessagePattern.matchMatcher(message) { val name = group("name") + if (name == "Jacob") return false if (name == "Spaceman") return false if (name == "Beth") return false -- cgit