mirror of
https://github.com/PikaMug/Quests.git
synced 2025-02-19 14:01:22 +01:00
Exclude * permission from Trial Mode check
This commit is contained in:
parent
ff3a8bbd1b
commit
7da6ea4b97
@ -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");
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user