factions.fly as the perm node
This commit is contained in:
parent
a90299d32e
commit
f1905d04a3
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user