geforkt von SteamWar/BungeeCore
Fix IngameChatListener
Dieser Commit ist enthalten in:
Ursprung
67566c2327
Commit
d666689465
@ -44,6 +44,11 @@ public class IngameChatListener extends BasicDiscordListener {
|
||||
if (steamwarUser == null || event.getMessage().getContentRaw().length() > 250) {
|
||||
event.getMessage().delete().complete();
|
||||
} else {
|
||||
String s = event.getMessage().getContentDisplay();
|
||||
if (!steamwarUser.getUserGroup().isTeamGroup() && (s.contains("http") || s.contains("www"))) {
|
||||
event.getMessage().delete().complete();
|
||||
return;
|
||||
}
|
||||
ChatListener.discordChat(steamwarUser, event.getMessage().getContentDisplay().replaceAll("§[a-f0-9]", "").replace('\n', ' '));
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren