Archived
0

Added Ignore support to AFK

This commit is contained in:
minenash
2018-01-15 20:45:02 -05:00
parent b7bfd07eae
commit 5b359aea4a

View File

@@ -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)