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.permission = Permission.FLIGHT.node;
this.permission = Permission.FLY.node;
this.senderMustBeMember = true;
this.senderMustBeModerator = false;
}
@Override
public void perform() {
// Disabled by default.
if (!P.p.getConfig().getBoolean("enable-faction-flight", false)) {
fme.msg(TL.COMMAND_FLY_DISABLED);
return;

View File

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

View File

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