How To Edit Chat Formatting
This guide explains how to change the chat formatting in our setups. It will also explain how to add custom placeholders into the chat formatting.
Difficulty: Easy
Plugins used for Chat Formating
In all of our setups, we use the plugins listed below for chat formatting. This means that if you want to edit the chat formatting, these are the plugins to configure.
LPC (LuckPermsChat)
LuckPerms
Essentials
LPC (LuckPermsChat)
The LPC plugin is the main plugin for chat message formatting in all of our setups. To configure this plugin, you need to open the LPC config.yml file.
In this config.yml file, you will find the chat-format setting.
chat-format: "{prefix}{displayname}&r &7➠ &f{message}"This is where the default chat format for all players is configured. So when a player sends a message in the chat, this will be the layout for the message. The {message} placeholder is the message that the player sends. The {displayname} placeholder is nickname/name of the player sending the message. And the {prefix} placeholder is the prefixes that the player has, which is configured in the LuckPerms plugin.
We recommend not to remove/edit any of the existing placeholders. But you can change the message color or use another arrow instead of this ➠. You can also add placeholders to the chat formatting.
Per group chat formatting
You can also have different chat formats depending on which group the player is in. This can be configured here:
group-formats:
# default: "[default] {name}&r: {message}"
# admin: "[admin] {name}&r: {message}"Remove the # infront of the groups.
LuckPerms
The LuckPerms plugin is used for all groups and permissions in the setup. For chat formatting, LuckPerms is responsible for formatting the prefixes (ranks and levels).
The prefixes for each rank can be edited in the LuckPerms editor. Open with /lp editor
The order and format in which the prefixes are displayed together as a group can be edited in the LuckPerms config.yml in the meta-formatting section:
meta-formatting:
prefix:
format:
- highest_on_track_level
- highest_on_track_rank
duplicates: first-only
start-spacer: ''
middle-spacer: ''
end-spacer: ''You can see the standard format from our setups above. With this format, the level is above the rank which means the level will be displayed before the rank. You can change the order of these prefixes to be displayed. In some of our setups, there will be more than 2 rank tracks.
Essentials
The Essentials plugin is used for a lot of different features in our setups, and is also crucial for the chat formatting. The Essentials plugin has its own chat plugin called EssentialsChat. But we don't use the EssentialsChat plugin, we use LPC instead.
However the Essentials config is still responsible for name color, nicknames, chat colors. All of which can be configured in the Essentials config.yml
Editing FAQ
Last updated
Was this helpful?