summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test/command
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test/command')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt10
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)
}