Fixed permissions

This commit is contained in:
tastybento 2018-06-02 19:19:57 -07:00
parent c3c51b957c
commit ef7dca31de
5 changed files with 10 additions and 4 deletions

View File

@ -11,3 +11,9 @@ permissions:
bskyblock.admin.challenges:
description: Access challenge admin commands
default: op
acidisland.challenges:
description: Let the player use the /challenges command
default: true
acidisland.admin.challenges:
description: Access challenge admin commands
default: op

View File

@ -29,7 +29,7 @@ public class ChallengesCommand extends CompositeCommand {
@Override
public void setup() {
this.setOnlyPlayer(true);
this.setPermission(getPermissionPrefix() + CHALLENGE_COMMAND);
this.setPermission(CHALLENGE_COMMAND);
this.setParameters(CHALLENGE_COMMAND + ".parameters");
this.setDescription(CHALLENGE_COMMAND + ".description");
this.setOnlyPlayer(true);

View File

@ -30,7 +30,7 @@ public class ChallengesAdminImportCommand extends CompositeCommand {
@Override
public void setup() {
this.setPermission(getPermissionPrefix() + "challenges.admin");
this.setPermission("challenges.admin");
this.setParameters("challenges.admin.import.parameters");
this.setDescription("challenges.admin.import.description");
}

View File

@ -27,7 +27,7 @@ public class CreateChallenge extends CompositeCommand {
@Override
public void setup() {
this.setOnlyPlayer(true);
this.setPermission(getPermissionPrefix() + "admin.challenges");
this.setPermission("admin.challenges");
this.setParameters("challaneges.admin.create.parameters");
this.setDescription("challenges.admin.create.description");

View File

@ -45,7 +45,7 @@ public class CreateSurrounding extends CompositeCommand implements Listener {
@Override
public void setup() {
this.setOnlyPlayer(true);
this.setPermission(getPermissionPrefix() + "admin.challenges");
this.setPermission("admin.challenges");
this.setParameters("challaneges.admin.create.surrounding.parameters");
this.setDescription("challenges.admin.create.surrounding.description");
}