From e69403b38a467f7bada5974a734cfb21e96127fd Mon Sep 17 00:00:00 2001 From: Brianna Date: Wed, 12 Aug 2020 11:58:47 -0500 Subject: [PATCH] Cleaned up and improved permissions. --- .../java/com/songoda/epicfurnaces/commands/CommandBoost.java | 2 +- .../java/com/songoda/epicfurnaces/commands/CommandGive.java | 2 +- .../java/com/songoda/epicfurnaces/commands/CommandReload.java | 4 ++-- .../java/com/songoda/epicfurnaces/commands/CommandRemote.java | 2 +- .../com/songoda/epicfurnaces/commands/CommandSettings.java | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/songoda/epicfurnaces/commands/CommandBoost.java b/src/main/java/com/songoda/epicfurnaces/commands/CommandBoost.java index 7296e37..8130149 100644 --- a/src/main/java/com/songoda/epicfurnaces/commands/CommandBoost.java +++ b/src/main/java/com/songoda/epicfurnaces/commands/CommandBoost.java @@ -74,7 +74,7 @@ public class CommandBoost extends AbstractCommand { @Override public String getPermissionNode() { - return "epicfurnaces.boost"; + return "epicfurnaces.admin.boost"; } @Override diff --git a/src/main/java/com/songoda/epicfurnaces/commands/CommandGive.java b/src/main/java/com/songoda/epicfurnaces/commands/CommandGive.java index e735489..ee2d34e 100644 --- a/src/main/java/com/songoda/epicfurnaces/commands/CommandGive.java +++ b/src/main/java/com/songoda/epicfurnaces/commands/CommandGive.java @@ -61,7 +61,7 @@ public class CommandGive extends AbstractCommand { @Override public String getPermissionNode() { - return "epicfurnaces.admin"; + return "epicfurnaces.admin.give"; } @Override diff --git a/src/main/java/com/songoda/epicfurnaces/commands/CommandReload.java b/src/main/java/com/songoda/epicfurnaces/commands/CommandReload.java index 84c33a9..9bfabf4 100644 --- a/src/main/java/com/songoda/epicfurnaces/commands/CommandReload.java +++ b/src/main/java/com/songoda/epicfurnaces/commands/CommandReload.java @@ -29,12 +29,12 @@ public class CommandReload extends AbstractCommand { @Override public String getPermissionNode() { - return "epicfurnaces.admin"; + return "epicfurnaces.admin.reload"; } @Override public String getSyntax() { - return "çreload"; + return "reload"; } @Override diff --git a/src/main/java/com/songoda/epicfurnaces/commands/CommandRemote.java b/src/main/java/com/songoda/epicfurnaces/commands/CommandRemote.java index 198e31b..1dd0dda 100644 --- a/src/main/java/com/songoda/epicfurnaces/commands/CommandRemote.java +++ b/src/main/java/com/songoda/epicfurnaces/commands/CommandRemote.java @@ -65,7 +65,7 @@ public class CommandRemote extends AbstractCommand { @Override public String getPermissionNode() { - return null; + return "epicfurnaces.remote"; } @Override diff --git a/src/main/java/com/songoda/epicfurnaces/commands/CommandSettings.java b/src/main/java/com/songoda/epicfurnaces/commands/CommandSettings.java index e0c3e29..b8ea87e 100644 --- a/src/main/java/com/songoda/epicfurnaces/commands/CommandSettings.java +++ b/src/main/java/com/songoda/epicfurnaces/commands/CommandSettings.java @@ -33,7 +33,7 @@ public class CommandSettings extends AbstractCommand { @Override public String getPermissionNode() { - return "epicfurnaces.admin"; + return "epicfurnaces.admin.settings"; } @Override