mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-22 18:46:39 +01:00
Fixed permissions check to remove dot
This commit is contained in:
parent
6c22185626
commit
9800da5973
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user