Placeholders - Hexaoxide/Carbon GitHub Wiki

MiniPlaceholders (All platforms)

MiniPlaceholders is a modern placeholder API for MiniMessage.

Party, nickname, and displayname placeholders have an optional plain argument to remove any styling

Placeholder Description
<carbonchat_party> Returns the player's current party in MiniMessage formatting. Will be blank if they are not in a party.
<carbonchat_nickname> Returns the player's nickname (or username if none is set) in MiniMessage formatting.
<carbonchat_displayname> Returns the player's display name (formatted nickname or username) in MiniMessage formatting.
<carbonchat_channel_key> Returns the channel key of the player's currently joined channel

Placeholders from MiniPlaceholders can be used in most message formats.

PlaceholderAPI (Paper servers)

Party, nickname, and displayname placeholders can be appended with _l and _p for legacy and plain formatting options.

Carbon provides the following placeholders to PlaceholderAPI:

Placeholder Description
%carbonchat_party% Returns the player's current party in MiniMessage formatting. Will be blank if they are not in a party.
%carbonchat_nickname% Returns the player's nickname (or username if none is set) in MiniMessage formatting.
%carbonchat_displayname% Returns the player's display name (formatted nickname or username) in MiniMessage formatting.
%carbonchat_channel_key% Returns the channel key of the player's currently joined channel

Placeholders from PlaceholderAPI can be used in many message formats out of the box, in their usual %placeholder% format.

Placeholders that contain legacy color codes (&###### or &4, etc.) that are used for channel formats should use Kyorify in order to convert them to MiniMessage format. (ex. %kyorify_luckperms_prefix% over %luckperms_prefix%)

Use MiniPlaceholders (see above section) and PlaceholderAPI-Expansion to use PlaceholderAPI anywhere MiniPlaceholders works, with more options for how placeholders are interpreted.

To get backend placeholders on Velocity, use MiniPlaceholders, the PAPI-Expansion, and PAPIProxyBridge.