Fix only the output of the last chat filter mattering (#1997)

This commit is contained in:
Patrick 'Quezler' Mounier 2020-05-07 15:41:16 +02:00 committed by GitHub
parent 98f012feb8
commit 8a48a8bf3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ public class Administration{
public @Nullable String filterMessage(Playerc player, String message){
String current = message;
for(ChatFilter f : chatFilters){
current = f.filter(player, message);
current = f.filter(player, current);
if(current == null) return null;
}
return current;