From 7a76f1d424ac95fcdc91e51294dbf103d558045d Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 16 Jun 2024 11:06:16 +0200 Subject: Added debug command /shtestisland --- .../java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/test') diff --git a/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt index 38db097a2..5b36d1863 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt @@ -56,16 +56,14 @@ object TestChatCommand { val event = LorenzChatEvent(message, componentText) event.postAndCatch() + if (isHidden) return + if (event.blockedReason != "") { - if (!isHidden) { - ChatUtils.chat("§cChat blocked: ${event.blockedReason}") - } + ChatUtils.chat("§cChat blocked: ${event.blockedReason}") } else { val finalMessage = event.chatComponent if (finalMessage.formattedText.stripHypixelMessage() != message) { - if (!isHidden) { - ChatUtils.chat("§eChat modified!") - } + ChatUtils.chat("§eChat modified!") } ChatUtils.chat(finalMessage) } -- cgit