Added Ignore support to Message
This commit is contained in:
@@ -16,6 +16,7 @@ import com.redstoner.misc.CommandHolderType;
|
|||||||
import com.redstoner.misc.Utils;
|
import com.redstoner.misc.Utils;
|
||||||
import com.redstoner.modules.Module;
|
import com.redstoner.modules.Module;
|
||||||
import com.redstoner.modules.datamanager.DataManager;
|
import com.redstoner.modules.datamanager.DataManager;
|
||||||
|
import com.redstoner.modules.ignore.Ignore;
|
||||||
import com.redstoner.modules.socialspy.Socialspy;
|
import com.redstoner.modules.socialspy.Socialspy;
|
||||||
|
|
||||||
@Commands(CommandHolderType.File)
|
@Commands(CommandHolderType.File)
|
||||||
@@ -37,6 +38,10 @@ public class Message implements Module
|
|||||||
getLogger().message(sender, true, "That player couldn't be found!");
|
getLogger().message(sender, true, "That player couldn't be found!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else if (ModuleLoader.exists("Ignore")? !Ignore.getIgnoredBy(sender).sendTo(p) : true) {
|
||||||
|
getLogger().message(sender, true, Utils.getName(p) + " has ignored you. Your message was not sent.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (ModuleLoader.getModule("Socialspy") != null)
|
if (ModuleLoader.getModule("Socialspy") != null)
|
||||||
@@ -77,6 +82,10 @@ public class Message implements Module
|
|||||||
getLogger().message(sender, true, "You don't have anyone to reply to!");
|
getLogger().message(sender, true, "You don't have anyone to reply to!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else if (ModuleLoader.exists("Ignore")? !Ignore.getIgnoredBy(sender).sendTo(target) : true) {
|
||||||
|
getLogger().message(sender, true, Utils.getName(target) + " has ignored you. Your message was not sent.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (ModuleLoader.getModule("Socialspy") != null)
|
if (ModuleLoader.getModule("Socialspy") != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user