Skip to content

Commit

Permalink
Exclude * permission from Trial Mode check
Browse files Browse the repository at this point in the history
  • Loading branch information
PikaMug committed Nov 24, 2021
1 parent ff3a8bb commit 7da6ea4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main/src/main/java/me/blackvein/quests/Quests.java
Expand Up @@ -4195,7 +4195,7 @@ public boolean canUseQuests(final UUID uuid) {
}

/**
* Checks if conversable is non-OP player in trial mode
* Checks if conversable is non-op, non-* player in Trial Mode
*
* @param conversable the editor user to be checked
* @return {@code true} if user is a Player with quests.mode.trial permission
Expand All @@ -4205,7 +4205,7 @@ public boolean hasLimitedAccess(final Conversable conversable) {
return false;
}
final Player player = ((Player)conversable);
if (player.isOp()) {
if (player.isOp() || player.hasPermission("*")) {
return false;
}
return player.hasPermission("quests.mode.trial");
Expand Down
Expand Up @@ -45,7 +45,7 @@ public static HandlerList getHandlerList() {
}

@Override
public @NotNull String getPromptText(@NotNull ConversationContext cc) {
public @NotNull String getPromptText(@NotNull final ConversationContext cc) {
return sendClickableSelection(getBasicPromptText(cc), cc.getForWhom());
}

Expand Down

0 comments on commit 7da6ea4

Please sign in to comment.