diff --git a/src/com/redstoner/modules/afk/AFK.java b/src/com/redstoner/modules/afk/AFK.java index 393c487..c2d330e 100644 --- a/src/com/redstoner/modules/afk/AFK.java +++ b/src/com/redstoner/modules/afk/AFK.java @@ -21,12 +21,14 @@ import com.nemez.cmdmgr.Command; import com.redstoner.annotations.AutoRegisterListener; import com.redstoner.annotations.Commands; import com.redstoner.annotations.Version; +import com.redstoner.coremods.moduleLoader.ModuleLoader; import com.redstoner.misc.BroadcastFilter; import com.redstoner.misc.CommandHolderType; import com.redstoner.misc.Main; import com.redstoner.misc.Utils; import com.redstoner.modules.Module; import com.redstoner.modules.datamanager.DataManager; +import com.redstoner.modules.ignore.Ignore; @Commands(CommandHolderType.File) @AutoRegisterListener @@ -199,7 +201,8 @@ class CustomListener implements Listener, EventExecutor public void unafk(CommandSender sender) { DataManager.setState(sender, "afk", false); - Utils.broadcast("§7 * ", Utils.getName(sender) + "§7 is no longer AFK", null); + Utils.broadcast("§7 * ", Utils.getName(sender) + "§7 is no longer AFK", + ModuleLoader.exists("Ignore")? Ignore.getIgnoredBy(sender) : null); } public boolean isafk(CommandSender sender)