From 8d6f40601c045193e540dc7ae5b8c424f8e2109d Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 30 Jul 2021 00:52:14 +0200 Subject: [PATCH] Hotfix IngameChatListener --- .../steamwar/bungeecore/bot/listeners/IngameChatListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/bot/listeners/IngameChatListener.java b/src/de/steamwar/bungeecore/bot/listeners/IngameChatListener.java index e8483083..def05afc 100644 --- a/src/de/steamwar/bungeecore/bot/listeners/IngameChatListener.java +++ b/src/de/steamwar/bungeecore/bot/listeners/IngameChatListener.java @@ -44,7 +44,7 @@ public class IngameChatListener extends BasicDiscordListener { if (steamwarUser == null || event.getMessage().getContentRaw().length() > 250) { event.getMessage().delete().complete(); } else { - ChatListener.discordChat(steamwarUser, event.getMessage().getContentRaw().replaceAll("(§[a-f0-9])|(\n)", "")); + ChatListener.discordChat(steamwarUser, event.getMessage().getContentRaw().replaceAll("§[a-f0-9]", "").replace('\n', ' ')); } }