From fd45a9873e7e5873f551676d6891bf17bd8bec62 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 30 Jul 2021 00:47:20 +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 f3a47ca..92882ba 100644 --- a/src/de/steamwar/bungeecore/bot/listeners/IngameChatListener.java +++ b/src/de/steamwar/bungeecore/bot/listeners/IngameChatListener.java @@ -41,7 +41,7 @@ public class IngameChatListener extends BasicDiscordListener { } Member member = event.getMember(); SteamwarUser steamwarUser = SteamwarUser.get(member.getIdLong()); - if (steamwarUser == null) { + if (steamwarUser == null || event.getMessage().getContentRaw().length() > 250) { event.getMessage().delete().complete(); } else { ChatListener.discordChat(steamwarUser, event.getMessage().getContentRaw().replaceAll("ยง[a-f0-9]", ""));