mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-22 18:46:39 +01:00
Fixed permissions
This commit is contained in:
parent
c3c51b957c
commit
ef7dca31de
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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");
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user