diff --git a/pom.xml b/pom.xml
index da893bfe..3bb7c25f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.massivecraft
Factions
- 1.6.9.5-2.2.6-RC
+ 1.6.9.5-2.2.7-RC
jar
SaberFactions
diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdSethome.java b/src/main/java/com/massivecraft/factions/cmd/CmdSethome.java
index 67b1c4e0..23dc61b8 100644
--- a/src/main/java/com/massivecraft/factions/cmd/CmdSethome.java
+++ b/src/main/java/com/massivecraft/factions/cmd/CmdSethome.java
@@ -2,6 +2,7 @@ package com.massivecraft.factions.cmd;
import com.massivecraft.factions.*;
import com.massivecraft.factions.struct.Permission;
+import com.massivecraft.factions.zcore.fperms.Access;
import com.massivecraft.factions.zcore.fperms.PermissableAction;
import com.massivecraft.factions.zcore.util.TL;
@@ -43,6 +44,16 @@ public class CmdSethome extends FCommand {
return;
}
+ if (!context.args.isEmpty()) {
+ Faction target = context.argAsFaction(0);
+ if (target == null) return;
+ context.faction = target;
+ if (target.getAccess(context.fPlayer, PermissableAction.SETHOME) != Access.ALLOW) {
+ context.fPlayer.msg(TL.GENERIC_FPERM_NOPERMISSION, "set faction home");
+ return;
+ }
+ }
+
// if economy is enabled, they're not on the bypass list, and this command has a cost set, make 'em pay
if (!context.payForCommand(Conf.econCostSethome, TL.COMMAND_SETHOME_TOSET, TL.COMMAND_SETHOME_FORSET)) {
return;