Fixed permissions
This commit is contained in:
parent
c3c51b957c
commit
ef7dca31de
|
@ -11,3 +11,9 @@ permissions:
|
||||||
bskyblock.admin.challenges:
|
bskyblock.admin.challenges:
|
||||||
description: Access challenge admin commands
|
description: Access challenge admin commands
|
||||||
default: op
|
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
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
this.setOnlyPlayer(true);
|
this.setOnlyPlayer(true);
|
||||||
this.setPermission(getPermissionPrefix() + CHALLENGE_COMMAND);
|
this.setPermission(CHALLENGE_COMMAND);
|
||||||
this.setParameters(CHALLENGE_COMMAND + ".parameters");
|
this.setParameters(CHALLENGE_COMMAND + ".parameters");
|
||||||
this.setDescription(CHALLENGE_COMMAND + ".description");
|
this.setDescription(CHALLENGE_COMMAND + ".description");
|
||||||
this.setOnlyPlayer(true);
|
this.setOnlyPlayer(true);
|
||||||
|
|
|
@ -30,7 +30,7 @@ public class ChallengesAdminImportCommand extends CompositeCommand {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
this.setPermission(getPermissionPrefix() + "challenges.admin");
|
this.setPermission("challenges.admin");
|
||||||
this.setParameters("challenges.admin.import.parameters");
|
this.setParameters("challenges.admin.import.parameters");
|
||||||
this.setDescription("challenges.admin.import.description");
|
this.setDescription("challenges.admin.import.description");
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class CreateChallenge extends CompositeCommand {
|
||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
this.setOnlyPlayer(true);
|
this.setOnlyPlayer(true);
|
||||||
this.setPermission(getPermissionPrefix() + "admin.challenges");
|
this.setPermission("admin.challenges");
|
||||||
this.setParameters("challaneges.admin.create.parameters");
|
this.setParameters("challaneges.admin.create.parameters");
|
||||||
this.setDescription("challenges.admin.create.description");
|
this.setDescription("challenges.admin.create.description");
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class CreateSurrounding extends CompositeCommand implements Listener {
|
||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
this.setOnlyPlayer(true);
|
this.setOnlyPlayer(true);
|
||||||
this.setPermission(getPermissionPrefix() + "admin.challenges");
|
this.setPermission("admin.challenges");
|
||||||
this.setParameters("challaneges.admin.create.surrounding.parameters");
|
this.setParameters("challaneges.admin.create.surrounding.parameters");
|
||||||
this.setDescription("challenges.admin.create.surrounding.description");
|
this.setDescription("challenges.admin.create.surrounding.description");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue