package com.massivecraft.factions.cmd; import com.massivecraft.factions.P; import com.massivecraft.factions.Perm; public class CmdAdmin extends FCommand { public CmdAdmin() { super(); this.aliases.add("admin"); //this.requiredArgs.add(""); this.optionalArgs.put("on/off", "flip"); this.permission = Perm.ADMIN.node; this.disableOnLock = false; senderMustBePlayer = true; senderMustBeMember = false; senderMustBeOfficer = false; senderMustBeLeader = false; } @Override public void perform() { fme.setHasAdminMode(this.argAsBool(0, ! fme.hasAdminMode())); if ( fme.hasAdminMode()) { fme.msg("You have enabled admin bypass mode."); P.p.log(fme.getName() + " has ENABLED admin bypass mode."); } else { fme.msg("You have disabled admin bypass mode."); P.p.log(fme.getName() + " DISABLED admin bypass mode."); } } }