Fixed permissions check to remove dot

This commit is contained in:
tastybento 2019-07-31 23:21:52 -07:00
parent 6c22185626
commit 9800da5973
2 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@
<powermock.version>1.7.4</powermock.version>
<!-- More visible way how to change dependency versions -->
<spigot.version>1.13.2-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>1.5.2</bentobox.version>
<bentobox.version>1.6.0-SNAPSHOT</bentobox.version>
<level.version>1.5.0</level.version>
<vault.version>1.7</vault.version>
<anvilgui.version>1.2.2-SNAPSHOT</anvilgui.version>

View File

@ -43,7 +43,7 @@ public class ChallengesCommand extends CompositeCommand
this.getAddon().getLogger().severe("There are no challenges set up in " + this.getWorld() + "!");
// Show admin better explanation.
if (user.isOp() || user.hasPermission(this.getPermissionPrefix() + ".admin.challenges"))
if (user.isOp() || user.hasPermission(this.getPermissionPrefix() + "admin.challenges"))
{
String topLabel = optionalAddon.get().getAdminCommand().orElseGet(this::getParent).getTopLabel();
user.sendMessage("challenges.errors.no-challenges-admin", "[command]", topLabel + " challenges");
@ -74,10 +74,10 @@ public class ChallengesCommand extends CompositeCommand
if (user.isPlayer())
{
new ChallengesGUI((ChallengesAddon) this.getAddon(),
this.getWorld(),
user,
this.getTopLabel(),
this.getPermissionPrefix()).build();
this.getWorld(),
user,
this.getTopLabel(),
this.getPermissionPrefix()).build();
return true;
}
// Show help