No More ZCore
This commit is contained in:
@@ -2,6 +2,7 @@ package com.massivecraft.factions.cmd;
|
||||
|
||||
import com.massivecraft.factions.Factions;
|
||||
import com.massivecraft.factions.Perm;
|
||||
import com.massivecraft.mcore.cmd.arg.ARBoolean;
|
||||
import com.massivecraft.mcore.cmd.req.ReqHasPerm;
|
||||
|
||||
public class CmdFactionsAdmin extends FCommand
|
||||
@@ -18,9 +19,12 @@ public class CmdFactionsAdmin extends FCommand
|
||||
@Override
|
||||
public void perform()
|
||||
{
|
||||
fme.setHasAdminMode(this.argAsBool(0, ! fme.hasAdminMode()));
|
||||
Boolean target = this.arg(0, ARBoolean.get(), !fme.isUsingAdminMode());
|
||||
if (target == null) return;
|
||||
|
||||
if ( fme.hasAdminMode())
|
||||
fme.setUsingAdminMode(target);
|
||||
|
||||
if ( fme.isUsingAdminMode())
|
||||
{
|
||||
fme.msg("<i>You have enabled admin bypass mode.");
|
||||
Factions.get().log(fme.getName() + " has ENABLED admin bypass mode.");
|
||||
|
||||
Reference in New Issue
Block a user