Dieser Commit ist enthalten in:
Ursprung
83e1a33af5
Commit
b5a49fb109
@ -169,10 +169,11 @@ public class ChatListener extends BasicListener {
|
|||||||
if(ChatListener.filteredCommand(sender, message))
|
if(ChatListener.filteredCommand(sender, message))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(!message.startsWith("/") && chatFilter(sender, message))
|
final String coloredMessage = sender.user().hasPerm(UserPerm.COLOR_CHAT) ? message.replace('&', '§') : message;
|
||||||
|
if(!message.startsWith("/") && chatFilter(sender, coloredMessage))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
sender.getPlayer().spoofChatInput(message);
|
sender.getPlayer().spoofChatInput(coloredMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean chatFilter(Chatter sender, String message) {
|
private static boolean chatFilter(Chatter sender, String message) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren