Skip to content

Placeholders

Emmanuel Lampe edited this page Jun 29, 2023 · 4 revisions

This page provides information about the placeholders used in FairyChat, a next-generation chat plugin for managing your server's chat. Placeholders are a key component of FairyChat, as they provide dynamic content in your chat, making it more interactive and engaging for your server users.

About Placeholders

Placeholders are special strings that get replaced with some dynamic content when the chat is being processed. For example, a placeholder might be used to display a player's name, their current rank, or any other player-specific or context-specific information.

In FairyChat, all chat formats are compatible with MiniMessage and MiniPlaceholders, making the customization process easier than ever. This allows for a high degree of flexibility and personalization in how your server's chat looks and behaves.

List of Placeholders

FairyChat supports a variety of placeholders for providing dynamic content in your chat. For a list of all available placeholders, you are advised to refer to the MiniPlaceholders wiki. This is because FairyChat utilizes MiniPlaceholders, a separate plugin that provides a host of placeholders for use in chat and other areas.

Here is the link to the MiniPlaceholders wiki.

Using Placeholders

To use a placeholder in FairyChat, simply include the placeholder string in the chat format where you want the dynamic content to appear. The placeholder string will be replaced with the relevant content when the chat message is processed.

For example, if there is a placeholder <player_name> for the player's name, you might set your chat format to something like "<player_name>: <message>". When a player named "Steve" sends a chat message "Hello!", it would appear in the chat as "Steve: Hello!".

For this example, it would be required to have the Player Expansion installed.

Remember to refer to the MiniPlaceholders wiki for the exact syntax and list of available placeholders.

PlaceholderAPI

Option using first party tag

If you wish to use a placeholder api placeholder, you just have to use the papi tag with its argument the name of the placeholder.

Example:

<papi:player_displayname>

Option using Expansion

This expansion currently doesn't support all legacy formats.

If you want to use placeholders from PlaceholderAPI, you have to install the PlaceholderAPI Expansion.

For further information, visit the link!


This page was last updated on June 23, 2023.