Fix only the output of the last chat filter mattering (#1997)
This commit is contained in:
committed by
GitHub
parent
98f012feb8
commit
8a48a8bf3d
@@ -89,7 +89,7 @@ public class Administration{
|
|||||||
public @Nullable String filterMessage(Playerc player, String message){
|
public @Nullable String filterMessage(Playerc player, String message){
|
||||||
String current = message;
|
String current = message;
|
||||||
for(ChatFilter f : chatFilters){
|
for(ChatFilter f : chatFilters){
|
||||||
current = f.filter(player, message);
|
current = f.filter(player, current);
|
||||||
if(current == null) return null;
|
if(current == null) return null;
|
||||||
}
|
}
|
||||||
return current;
|
return current;
|
||||||
|
|||||||
Reference in New Issue
Block a user