Home Permissable Action Fixed
Usage: /f home <faction>
This commit is contained in:
parent
126dfe49a1
commit
16cbee7050
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user