SteamWar/BungeeCore
Archiviert
13
2

Hotfix IngameChatListener

Dieser Commit ist enthalten in:
yoyosource 2021-07-30 10:55:02 +02:00
Ursprung de606f7527
Commit be5f5a033f

Datei anzeigen

@ -50,6 +50,10 @@ public class IngameChatListener extends BasicDiscordListener {
event.getMessage().delete().complete(); event.getMessage().delete().complete();
return; return;
} }
if (steamwarUser.isMuted() || steamwarUser.isBanned()) {
event.getMessage().delete().complete();
return;
}
ChatListener.discordChat(steamwarUser, event.getMessage().getContentDisplay().replaceAll("§[a-f0-9]", "").replace('\n', ' ')); ChatListener.discordChat(steamwarUser, event.getMessage().getContentDisplay().replaceAll("§[a-f0-9]", "").replace('\n', ' '));
} }
} }