Home Permissable Action Fixed

Usage: /f home <faction>
This commit is contained in:
Driftay 2019-07-17 10:31:36 -04:00
parent 126dfe49a1
commit 16cbee7050

View File

@ -63,8 +63,9 @@ public class CmdHome extends FCommand {
if(factionArg == null || factionArg.isWilderness()) if(factionArg == null || factionArg.isWilderness())
return; return;
Access access1 = myFaction.getAccess(fme, PermissableAction.HOME);
if(factionArg.hasHome()){ if(factionArg.hasHome()){
if(fme.isAdminBypassing()) { if(fme.isAdminBypassing() || 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 {