From 4cc9a8a3e92cc01012e9883942012cebb63c4660 Mon Sep 17 00:00:00 2001 From: prosavage Date: Sat, 20 Jul 2019 11:20:17 -0500 Subject: [PATCH] Faction home fix --- src/main/java/com/massivecraft/factions/cmd/CmdHome.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdHome.java b/src/main/java/com/massivecraft/factions/cmd/CmdHome.java index fe0cfd86..259d5608 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdHome.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdHome.java @@ -65,7 +65,7 @@ public class CmdHome extends FCommand { Access access1 = myFaction.getAccess(fme, PermissableAction.HOME); if(factionArg.hasHome()){ - if(fme.isAdminBypassing() || access1 == Access.ALLOW ) { + if(fme.isAdminBypassing() || (myFaction.equals(fme.getFaction()) && fme.getRole().equals(Role.LEADER)) || access1 == Access.ALLOW ) { fme.getPlayer().teleport(factionArg.getHome()); fme.msg(TL.COMMAND_HOME_TELEPORT_OTHER, factionArg.getTag()); } else {