Faction home fix
This commit is contained in:
parent
ce8e5853a4
commit
4cc9a8a3e9
@ -65,7 +65,7 @@ public class CmdHome extends FCommand {
|
|||||||
|
|
||||||
Access access1 = myFaction.getAccess(fme, PermissableAction.HOME);
|
Access access1 = myFaction.getAccess(fme, PermissableAction.HOME);
|
||||||
if(factionArg.hasHome()){
|
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.getPlayer().teleport(factionArg.getHome());
|
||||||
fme.msg(TL.COMMAND_HOME_TELEPORT_OTHER, factionArg.getTag());
|
fme.msg(TL.COMMAND_HOME_TELEPORT_OTHER, factionArg.getTag());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user