diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-16 11:06:16 +0200 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-16 11:06:16 +0200 |
| commit | 7a76f1d424ac95fcdc91e51294dbf103d558045d (patch) | |
| tree | 1894cec140538f77b02766bed563f7bbc79c6fc6 /src/main/java/at/hannibal2/skyhanni/test | |
| parent | 41898a154567e77d16cfcae98fe49f66e287241c (diff) | |
| download | skyhanni-7a76f1d424ac95fcdc91e51294dbf103d558045d.tar.gz skyhanni-7a76f1d424ac95fcdc91e51294dbf103d558045d.tar.bz2 skyhanni-7a76f1d424ac95fcdc91e51294dbf103d558045d.zip | |
Added debug command /shtestisland
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt | 10 |
1 files changed, 4 insertions, 6 deletions
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) } |
