Class PlaceholderRuleSetEvaluator
java.lang.Object
com.ordwen.odailyquests.quests.conditions.placeholder.PlaceholderRuleSetEvaluator
Utility class responsible for evaluating a list of placeholder-based conditions
against a player. Each condition uses PlaceholderAPI to resolve values and checks
whether they match an expected value. If the evaluation fails, the player may
receive feedback messages depending on configuration.
The result of an evaluation is a simple boolean
indicating whether all
conditions were satisfied.
This class is not meant to be instantiated; all methods are static.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
evaluate
(org.bukkit.entity.Player player, List<PlaceholderCondition> conditions, boolean sendMessages) Evaluates a list of placeholder conditions for a given player.
-
Method Details
-
evaluate
public static boolean evaluate(org.bukkit.entity.Player player, List<PlaceholderCondition> conditions, boolean sendMessages) Evaluates a list of placeholder conditions for a given player. Ensures that PlaceholderAPI is available, checks each condition in turn, and optionally sends feedback messages to the player if evaluation fails.- Parameters:
player
- the player for whom conditions are evaluatedconditions
- the list of conditions to check (may be null or empty)sendMessages
- whether to send feedback messages to the player- Returns:
true
if all conditions are satisfied;false
otherwise
-