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