PlaceholderAPI Integration
Overview
Section titled “Overview”RexChat integrates with PlaceholderAPI in two ways:
- Uses PAPI placeholders in chat format, hover text, join/leave messages
- Provides custom placeholders for other plugins to use
Using PAPI Placeholders
Section titled “Using PAPI Placeholders”Any PlaceholderAPI placeholder works in:
chat-format.formatchat-format.groups.*.format- Hover lines
- Join/leave messages
- Dynamic command messages
Example:
chat-format: format: "%luckperms_prefix% &7%player_name%: &f{message}"In Chat Messages
Section titled “In Chat Messages”Players with rexchat.chat.placeholders permission can use PAPI placeholders directly in their chat messages.
RexChat Placeholders
Section titled “RexChat Placeholders”These placeholders are registered when PlaceholderAPI is present:
| Placeholder | Description |
|---|---|
%rexchat_tag% | Player’s selected tag (from tag system) |
%rexchat_muted% | Whether chat is muted (true/false) |
%rexchat_chatcolor% | Player’s selected chat color ID |
Internal Placeholder
Section titled “Internal Placeholder”| Placeholder | Description |
|---|---|
%rc_prefix% | RexChat message prefix (from messages.prefix) |
This is not a PAPI placeholder — it’s resolved internally by RexChat in all message strings.