mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-26 12:35:24 +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>
|
<powermock.version>1.7.4</powermock.version>
|
||||||
<!-- More visible way how to change dependency versions -->
|
<!-- More visible way how to change dependency versions -->
|
||||||
<spigot.version>1.13.2-R0.1-SNAPSHOT</spigot.version>
|
<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>
|
<level.version>1.5.0</level.version>
|
||||||
<vault.version>1.7</vault.version>
|
<vault.version>1.7</vault.version>
|
||||||
<anvilgui.version>1.2.2-SNAPSHOT</anvilgui.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() + "!");
|
this.getAddon().getLogger().severe("There are no challenges set up in " + this.getWorld() + "!");
|
||||||
|
|
||||||
// Show admin better explanation.
|
// 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();
|
String topLabel = optionalAddon.get().getAdminCommand().orElseGet(this::getParent).getTopLabel();
|
||||||
user.sendMessage("challenges.errors.no-challenges-admin", "[command]", topLabel + " challenges");
|
user.sendMessage("challenges.errors.no-challenges-admin", "[command]", topLabel + " challenges");
|
||||||
|
Loading…
Reference in New Issue
Block a user