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

This commit is contained in:
Patrick 'Quezler' Mounier
2020-05-07 09:41:16 -04:00
committed by GitHub
parent 98f012feb8
commit 8a48a8bf3d
+1 -1
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;