Skip to content

Commit

Permalink
Fixes a mistaken permission for completing multiple challenges at once.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Apr 16, 2021
1 parent 66779a7 commit 227138a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public CompleteChallengeCommand(Addon addon, CompositeCommand cmd)
public void setup()
{
this.setOnlyPlayer(true);
this.setPermission("complete");
this.setPermission("challenges");
this.setParametersHelp("challenges.commands.user.complete.parameters");
this.setDescription("challenges.commands.user.complete.description");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ private PanelItem getChallengeButton(Challenge challenge)

if (clickType.isRightClick() &&
challenge.isRepeatable() &&
this.user.hasPermission(this.permissionPrefix + "complete.multiple"))
this.user.hasPermission(this.permissionPrefix + "challenges.multiple"))
{
new MultipleGUI(this.user,
this.addon.getChallengesSettings().getLoreLineLength(),
Expand Down

0 comments on commit 227138a

Please sign in to comment.