Formatted TnT Commands/Added Alias for Missions

And Few Code Clean Ups From Last Week
This commit is contained in:
Driftay
2019-08-17 15:02:38 -04:00
parent a7f0cac597
commit f497f96b94
13 changed files with 443 additions and 565 deletions

View File

@@ -103,6 +103,14 @@ public class CmdHome extends FCommand {
return;
}
if (!fme.isAdminBypassing()) {
Access access = fme.getFaction().getAccess(fme, PermissableAction.HOME);
if (access != Access.ALLOW && fme.getRole() != Role.LEADER) {
fme.msg(TL.GENERIC_FPERM_NOPERMISSION, "teleport home");
return;
}
}
Faction faction = Board.getInstance().getFactionAt(new FLocation(me.getLocation()));
final Location loc = me.getLocation().clone();