factions.fly as the perm node

This commit is contained in:
Trent Hensler 2018-03-04 14:16:17 -08:00
parent a90299d32e
commit f1905d04a3
3 changed files with 5 additions and 4 deletions

View File

@ -15,13 +15,14 @@ public class CmdFly extends FCommand {
this.optionalArgs.put("on/off", "flip"); this.optionalArgs.put("on/off", "flip");
this.permission = Permission.FLIGHT.node; this.permission = Permission.FLY.node;
this.senderMustBeMember = true; this.senderMustBeMember = true;
this.senderMustBeModerator = false; this.senderMustBeModerator = false;
} }
@Override @Override
public void perform() { public void perform() {
// Disabled by default.
if (!P.p.getConfig().getBoolean("enable-faction-flight", false)) { if (!P.p.getConfig().getBoolean("enable-faction-flight", false)) {
fme.msg(TL.COMMAND_FLY_DISABLED); fme.msg(TL.COMMAND_FLY_DISABLED);
return; return;

View File

@ -28,6 +28,7 @@ public enum Permission {
DESCRIPTION("description"), DESCRIPTION("description"),
DISBAND("disband"), DISBAND("disband"),
DISBAND_ANY("disband.any"), DISBAND_ANY("disband.any"),
FLY("fly"),
HELP("help"), HELP("help"),
HOME("home"), HOME("home"),
INVITE("invite"), INVITE("invite"),
@ -87,8 +88,7 @@ public enum Permission {
TOP("top"), TOP("top"),
VAULT("vault"), VAULT("vault"),
SETMAXVAULTS("setmaxvaults"), SETMAXVAULTS("setmaxvaults"),
WARP("warp"), WARP("warp");
FLIGHT("flight");
public final String node; public final String node;

View File

@ -283,5 +283,5 @@ permissions:
description: Set your /f map height. description: Set your /f map height.
factions.ban: factions.ban:
description: Ban players from Factions description: Ban players from Factions
factions.flight: factions.fly:
description: Allow use of /f fly description: Allow use of /f fly