From be5f5a033f726b60688e071ad274d92cabeae0d9 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 30 Jul 2021 10:55:02 +0200 Subject: [PATCH] Hotfix IngameChatListener --- .../steamwar/bungeecore/bot/listeners/IngameChatListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/de/steamwar/bungeecore/bot/listeners/IngameChatListener.java b/src/de/steamwar/bungeecore/bot/listeners/IngameChatListener.java index 790574d..5cc8b04 100644 --- a/src/de/steamwar/bungeecore/bot/listeners/IngameChatListener.java +++ b/src/de/steamwar/bungeecore/bot/listeners/IngameChatListener.java @@ -50,6 +50,10 @@ public class IngameChatListener extends BasicDiscordListener { event.getMessage().delete().complete(); return; } + if (steamwarUser.isMuted() || steamwarUser.isBanned()) { + event.getMessage().delete().complete(); + return; + } ChatListener.discordChat(steamwarUser, event.getMessage().getContentDisplay().replaceAll("ยง[a-f0-9]", "").replace('\n', ' ')); } }