Fixes an incorrect permission assignment for global admin and global player command.

Reported via discord.
This commit is contained in:
BONNe 2022-05-13 18:02:42 +03:00
parent 629159b52d
commit 218e5fc6c4
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ public class ChallengesGlobalPlayerCommand extends CompositeCommand
public void setup()
{
this.setOnlyPlayer(true);
this.setPermission("addon.challenges");
this.setPermission("challenges");
this.setParametersHelp("challenges.commands.user.main.parameters");
this.setDescription("challenges.commands.user.main.description");
}

View File

@ -37,7 +37,7 @@ public class ChallengesGlobalAdminCommand extends CompositeCommand
@Override
public void setup()
{
this.setPermission("addon.admin.challenges");
this.setPermission("admin.challenges");
this.setParametersHelp("challenges.commands.admin.main.parameters");
this.setDescription("challenges.commands.admin.main.description");
}