geforkt von SteamWar/BungeeCore
Hotfix IngameChatListener
Dieser Commit ist enthalten in:
Ursprung
a452ee6faf
Commit
fd45a9873e
@ -41,7 +41,7 @@ public class IngameChatListener extends BasicDiscordListener {
|
|||||||
}
|
}
|
||||||
Member member = event.getMember();
|
Member member = event.getMember();
|
||||||
SteamwarUser steamwarUser = SteamwarUser.get(member.getIdLong());
|
SteamwarUser steamwarUser = SteamwarUser.get(member.getIdLong());
|
||||||
if (steamwarUser == null) {
|
if (steamwarUser == null || event.getMessage().getContentRaw().length() > 250) {
|
||||||
event.getMessage().delete().complete();
|
event.getMessage().delete().complete();
|
||||||
} else {
|
} else {
|
||||||
ChatListener.discordChat(steamwarUser, event.getMessage().getContentRaw().replaceAll("§[a-f0-9]", ""));
|
ChatListener.discordChat(steamwarUser, event.getMessage().getContentRaw().replaceAll("§[a-f0-9]", ""));
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren