Don't even load /f fly if its set to false in config.

This commit is contained in:
Trent Hensler
2018-03-18 14:37:55 -07:00
parent 587182478b
commit 026b33b427
2 changed files with 8 additions and 7 deletions

View File

@@ -22,12 +22,6 @@ public class CmdFly extends FCommand {
@Override
public void perform() {
// Disabled by default.
if (!P.p.getConfig().getBoolean("enable-faction-flight", false)) {
fme.msg(TL.COMMAND_FLY_DISABLED);
return;
}
if (args.size() == 0) {
if (!fme.canFlyAtLocation() && !fme.isFlying()) {
Faction factionAtLocation = Board.getInstance().getFactionAt(fme.getLastStoodAt());