diff options
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt | 6 |
1 files changed, 4 insertions, 2 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 39740a8ec..759cbd9e7 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt @@ -11,8 +11,10 @@ object TestChatCommand { LorenzUtils.chat("§c[SkyHanni] Specify a chat message to test") return } - val rawMessage = args.toList().joinToString(" ") - LorenzUtils.chat("§a[SkyHanni] testing message: §7$rawMessage") + val hidden = args.last() == "-s" + var rawMessage = args.toList().joinToString(" ") + if (!hidden) LorenzUtils.chat("§a[SkyHanni] testing message: §7$rawMessage") + if (hidden) rawMessage = rawMessage.replace(" -s", "") val formattedMessage = rawMessage.replace("&", "§") LorenzUtils.chat(formattedMessage) MinecraftForge.EVENT_BUS.post(ClientChatReceivedEvent(0, ChatComponentText(formattedMessage))) |