Placeholder Task
This task allows EpicAchievements to integrate with basically any other plugin that has some PlaceholderAPI placeholders.
Placeholders that output integers
The configuration is essentially the same as the other task types:
Example configuration:
- v2.0
- v1.0
achievements/survival/tiered.yml
lumberjack:
type: PLACEHOLDER
settings:
# Placeholder to be tested:
placeholder: "%auraskills_foraging%"
name: "Professional Lumberjack"
description:
- "&fCut down trees!"
tiers:
1:
required-amount: 1
rewards:
- type: points
amount: 10
2:
required-amount: 2
rewards:
- type: points
amount: 15
3:
required-amount: 3
rewards:
- type: points
amount: 20
achievements/survival/achievements.yml
lumberjack:
type: PLACEHOLDER
placeholder: "%auraskills_foraging%"
name: "Professional Lumberjack"
description:
- "&fCut down trees!"
tiers:
1:
required-amount: 1
points: 10
2:
required-amount: 2
points: 15
3:
required-amount: 3
points: 20
Placeholders that output text
warning
These achievements are limited to only 1 tier.
You can use one of the operators below to test the placeholder:
Operator | Description |
---|---|
EQUALS | Checks if the output matches the specified value. |
EQUALS_IGNORE_CASE | Checks if the output matches the specified value, ignoring case. |
NOT_EQUALS | Checks if the output does not match the specified value. |
NOT_EQUALS_IGNORE_CASE | Checks if the output does not match the specified value, ignoring case. |
CONTAINS | Checks if the output contains the specified value as a substring. |
STARTS_WITH | Checks if the output begins with the specified value. |
ENDS_WITH | Checks if the output ends with the specified value. |
REGEX | Checks if the output matches the specified regular expression. |
Example configuration:
- v2.0
- v1.0
achievements/survival/challenges.yml
first-nap:
type: PLACEHOLDER
settings:
placeholder: "%player_is_sleeping%"
operator: EQUALS
value: "yes"
name: "First Nap"
description:
- '&fSleep for the first time!'
tiers:
1:
required-amount: 1
rewards:
- type: points
amount: 10
achievements/survival/achievements.yml
first-nap:
type: PLACEHOLDER
placeholder: '%player_is_sleeping%'
name: "First Nap"
description:
- '&fSleep for the first time!'
tiers:
1:
placeholder:
operator: EQUALS
value: "yes"
points: 10
rewards: []