PlaceholderAPI
paper/parse_placeholders
Parse Placeholders
Processes a string through PlaceholderAPI, replacing %placeholder% tokens.
Note: Requires PlaceholderAPI to be installed. If PlaceholderAPI is not present, returns the original text unchanged.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
player |
player | ✓ | Player for context (e.g. %player_name%). |
text |
string | Text containing %placeholders%. |
Outputs
| Name | Type | Description |
|---|---|---|
result |
string | Fully parsed string. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
text |
string | "%player_name%" |
Text |