From 21c7742dcbaa67a16e73ec4284f732e18f0d5989 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Thu, 25 Apr 2013 17:00:22 +0200 Subject: [PATCH] Added missing enabled requirement for sethome. --- src/com/massivecraft/factions/cmd/CmdFactionsClaim.java | 2 +- src/com/massivecraft/factions/cmd/CmdFactionsSethome.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsClaim.java b/src/com/massivecraft/factions/cmd/CmdFactionsClaim.java index 3f9ed60e..8d5a03a8 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsClaim.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsClaim.java @@ -24,8 +24,8 @@ public class CmdFactionsClaim extends FCommand this.addOptionalArg("faction", "you"); this.addRequirements(ReqFactionsEnabled.get()); - this.addRequirements(ReqHasPerm.get(Perm.CLAIM.node)); this.addRequirements(ReqIsPlayer.get()); + this.addRequirements(ReqHasPerm.get(Perm.CLAIM.node)); } @Override diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsSethome.java b/src/com/massivecraft/factions/cmd/CmdFactionsSethome.java index d70aa188..6929d91e 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsSethome.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsSethome.java @@ -4,6 +4,7 @@ import com.massivecraft.factions.FPerm; import com.massivecraft.factions.Factions; import com.massivecraft.factions.Perm; import com.massivecraft.factions.cmd.arg.ARFaction; +import com.massivecraft.factions.cmd.req.ReqFactionsEnabled; import com.massivecraft.factions.entity.Faction; import com.massivecraft.factions.entity.UConf; import com.massivecraft.factions.event.FactionsEventHomeChange; @@ -19,6 +20,7 @@ public class CmdFactionsSethome extends FCommand this.addOptionalArg("faction", "you"); + this.addRequirements(ReqFactionsEnabled.get()); this.addRequirements(ReqIsPlayer.get()); this.addRequirements(ReqHasPerm.get(Perm.SETHOME.node)); }