Exclude * permission from Trial Mode check

This commit is contained in:
PikaMug 2021-11-24 04:17:34 -05:00
parent ff3a8bbd1b
commit 7da6ea4b97
2 changed files with 3 additions and 3 deletions

View File

@ -4195,7 +4195,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
}
/**
* 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
@ -4205,7 +4205,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
return false;
}
final Player player = ((Player)conversable);
if (player.isOp()) {
if (player.isOp() || player.hasPermission("*")) {
return false;
}
return player.hasPermission("quests.mode.trial");

View File

@ -45,7 +45,7 @@ public abstract class QuestsNumericPrompt extends NumericPrompt {
}
@Override
public @NotNull String getPromptText(@NotNull ConversationContext cc) {
public @NotNull String getPromptText(@NotNull final ConversationContext cc) {
return sendClickableSelection(getBasicPromptText(cc), cc.getForWhom());
}