Placeholder quest
Since the 2.1.0, you can create quests that requires a placeholder to be a specific value. This functionnality is only compatible with PlaceholderAPI at the moment.
On a placeholder quest, you need to specify a placeholder, an operator, an expected value and an error message.
Classical types
There is currently the following operators:
Operator | Description | Type |
---|---|---|
EQUALS | The value of the parsed placeholder must be equal to the required value. | TEXT |
NOT_EQUALS | The value of the parsed placeholder must be different of the required value. | TEXT |
GREATER_THAN | The value of the parsed placeholder must be greater than the required value. | NUMBER |
GREATER_THAN_OR_EQUALS | The value of the parsed placeholder can be greater or equal to the required value. | NUMBER |
LESS_THAN | The value of the parsed placeholder must be lower than the required value. | NUMBER |
LESS_THAN_OR_EQUALS | The value of the parsed placeholder can be lower or equal to the required value. | NUMBER |
Here is some examples:
Compare durations
In addition, you can compare durations returned by placeholders using the following types :
Operator | Format |
---|---|
DURATION_GREATER_THAN | hh:mm:ss:SSS |
DURATION_GREATER_THAN_OR_EQUALS | hh:mm:ss:SSS |
DURATION_LESS_THAN | hh:mm:ss:SSS |
DURATION_LESS_THAN_OR_EQUALS | hh:mm:ss:SSS |
hh
are hours, mm
are minutes, ss
are seconds and SSS
are milliseconds.
Here is an example :
Last updated