From 166b69f104c9510bcb49831dd46a506b70a63e39 Mon Sep 17 00:00:00 2001 From: minenash Date: Mon, 15 Jan 2018 20:42:41 -0500 Subject: [PATCH] Added Ignore to ChatGroups --- src/com/redstoner/modules/chatgroups/Chatgroups.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/redstoner/modules/chatgroups/Chatgroups.java b/src/com/redstoner/modules/chatgroups/Chatgroups.java index 2b61961..0f61451 100644 --- a/src/com/redstoner/modules/chatgroups/Chatgroups.java +++ b/src/com/redstoner/modules/chatgroups/Chatgroups.java @@ -368,7 +368,8 @@ public class Chatgroups implements Module, Listener { String rgroup = getGroup(recipient); - if ( rgroup != null && (ignore == null? true : ignore.sendTo(recipient)) ) + if ( rgroup != null && (ignore == null? true : ignore.sendTo(recipient)) + && (ModuleLoader.exists("Ignore")? Ignore.getIgnoredBy(sender).sendTo(recipient)? true : false : true)) return rgroup.equals(group); else return false; @@ -404,7 +405,8 @@ public class Chatgroups implements Module, Listener public boolean sendTo(CommandSender recipient) { String rgroup = getGroup(recipient); - if (rgroup != null) + if (rgroup != null + && (ModuleLoader.exists("Ignore")? Ignore.getIgnoredBy(sender).sendTo(recipient)? true : false : true)) return rgroup.equals(group); else return false;