Skip to content

Commit

Permalink
Add correct default permissions for '/challenges' and '/challengesadm…
Browse files Browse the repository at this point in the history
…in' commands.
  • Loading branch information
BONNe committed Mar 5, 2019
1 parent ba5c972 commit ef852a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class ChallengesAddon extends Addon {
/**
* Permission prefix for addon.
*/
private static final String PERMISSION_PREFIX = "addon";
private static final String PERMISSION_PREFIX = "addon.";

/**
* This flag allows to complete challenges in any part of the world. It will not limit
Expand Down
8 changes: 7 additions & 1 deletion src/main/resources/addon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ authors:

softdepend: AcidIsland, BSkyBlock, CaveBlock, SkyGrid, Level

permissions:
permissions:
addon.admin.challenges:
description: Access to '/challengesadmin' command
default: op
addon.challenges:
description: Let the player use the '/challenges' command
default: true
bskyblock.challenges:
description: Let the player use the '/island challenges' command
default: true
Expand Down

0 comments on commit ef852a0

Please sign in to comment.