Skip to main content

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:

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

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:

OperatorDescription
EQUALSChecks if the output matches the specified value.
EQUALS_IGNORE_CASEChecks if the output matches the specified value, ignoring case.
NOT_EQUALSChecks if the output does not match the specified value.
NOT_EQUALS_IGNORE_CASEChecks if the output does not match the specified value, ignoring case.
CONTAINSChecks if the output contains the specified value as a substring.
STARTS_WITHChecks if the output begins with the specified value.
ENDS_WITHChecks if the output ends with the specified value.
REGEXChecks if the output matches the specified regular expression.

Example configuration:

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