Fix permissions

This commit is contained in:
Trent Hensler 2018-01-04 23:01:52 -08:00
parent 4110fb2ef4
commit 39f1bd7404
6 changed files with 6 additions and 7 deletions

View File

@ -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();

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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"),