mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-12-03 15:43:24 +01:00
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.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;
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user