Fixed ignore BroadcastFilter
This commit is contained in:
@@ -119,7 +119,7 @@ public class Ignore implements Module {
|
|||||||
public boolean sendTo(CommandSender recipient) {
|
public boolean sendTo(CommandSender recipient) {
|
||||||
if (sUUID.equals("CONSOLE")) return true;
|
if (sUUID.equals("CONSOLE")) return true;
|
||||||
|
|
||||||
if ((recipient instanceof Player)) return true;
|
if ((recipient instanceof Player)) {
|
||||||
|
|
||||||
Player player = (Player) recipient;
|
Player player = (Player) recipient;
|
||||||
|
|
||||||
@@ -127,6 +127,8 @@ public class Ignore implements Module {
|
|||||||
|
|
||||||
JSONArray ignores = (JSONArray) DataManager.getOrDefault(recipient, "ignores", new JSONArray());
|
JSONArray ignores = (JSONArray) DataManager.getOrDefault(recipient, "ignores", new JSONArray());
|
||||||
return !ignores.contains(sUUID);
|
return !ignores.contains(sUUID);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user