Fix permissions
This commit is contained in:
parent
4110fb2ef4
commit
39f1bd7404
@ -20,7 +20,7 @@ public class CmdPerm extends FCommand {
|
|||||||
this.optionalArgs.put("action", "action");
|
this.optionalArgs.put("action", "action");
|
||||||
this.optionalArgs.put("access", "access");
|
this.optionalArgs.put("access", "access");
|
||||||
|
|
||||||
this.permission = Permission.SET_PEACEFUL.node;
|
this.permission = Permission.PERMISSIONS.node;
|
||||||
this.disableOnLock = false;
|
this.disableOnLock = false;
|
||||||
|
|
||||||
senderMustBePlayer = true;
|
senderMustBePlayer = true;
|
||||||
|
@ -11,7 +11,7 @@ public class CmdPermanentPower extends FCommand {
|
|||||||
this.aliases.add("permanentpower");
|
this.aliases.add("permanentpower");
|
||||||
|
|
||||||
this.requiredArgs.add("faction");
|
this.requiredArgs.add("faction");
|
||||||
this.optionalArgs.put("power", "reset");
|
this.requiredArgs.add("power");
|
||||||
|
|
||||||
this.permission = Permission.SET_PERMANENTPOWER.node;
|
this.permission = Permission.SET_PERMANENTPOWER.node;
|
||||||
this.disableOnLock = true;
|
this.disableOnLock = true;
|
||||||
|
@ -11,9 +11,6 @@ public class CmdReload extends FCommand {
|
|||||||
super();
|
super();
|
||||||
this.aliases.add("reload");
|
this.aliases.add("reload");
|
||||||
|
|
||||||
//this.requiredArgs.add("");
|
|
||||||
this.optionalArgs.put("file", "all");
|
|
||||||
|
|
||||||
this.permission = Permission.RELOAD.node;
|
this.permission = Permission.RELOAD.node;
|
||||||
this.disableOnLock = false;
|
this.disableOnLock = false;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ public class FPromoteCommand extends FCommand {
|
|||||||
|
|
||||||
this.requiredArgs.add("player");
|
this.requiredArgs.add("player");
|
||||||
|
|
||||||
this.permission = Permission.MOD.node;
|
this.permission = Permission.PROMOTE.node;
|
||||||
this.disableOnLock = true;
|
this.disableOnLock = true;
|
||||||
|
|
||||||
senderMustBePlayer = true;
|
senderMustBePlayer = true;
|
||||||
|
@ -58,9 +58,11 @@ public enum Permission {
|
|||||||
SET_PERMANENT("setpermanent"),
|
SET_PERMANENT("setpermanent"),
|
||||||
SET_PERMANENTPOWER("setpermanentpower"),
|
SET_PERMANENTPOWER("setpermanentpower"),
|
||||||
SHOW_INVITES("showinvites"),
|
SHOW_INVITES("showinvites"),
|
||||||
|
PERMISSIONS("permissions"),
|
||||||
POWERBOOST("powerboost"),
|
POWERBOOST("powerboost"),
|
||||||
POWER("power"),
|
POWER("power"),
|
||||||
POWER_ANY("power.any"),
|
POWER_ANY("power.any"),
|
||||||
|
PROMOTE("promote"),
|
||||||
RELATION("relation"),
|
RELATION("relation"),
|
||||||
RELOAD("reload"),
|
RELOAD("reload"),
|
||||||
SAVE("save"),
|
SAVE("save"),
|
||||||
|
Loading…
Reference in New Issue
Block a user