📖Messages
To fully understand this documentation, you need to be familiar with how a YAML configuration file works. Without this knowledge, the following explanations may be difficult to follow.
You can use the MiniMessage format for your messages, which allows you to add extensive customization options and functionality.
Here is a site that allows you to preview your messages: https://webui.advntr.dev/
You can also set global variables for all messages in the config.yml
file, such as <success>
and <error>
.
Configurations
There are various ways to configure the messages, with the most common being a simple message, like this:
However, there are other types of messages, as well as the ability to send multiple messages simultaneously.
TCHAT
The tchat
type is the most common message type, allowing you to send messages directly to the player's chat. With this type, each message will include a prefix. If you want to send a message without a prefix, you must use the WITHOUT_PREFIX type. Note that when you send a list of messages, only the first message will have a prefix; in the example below, module-disable
will have a prefix, but rules
will not.
You have the option to send either a single message or multiple messages, like this:
You don’t need to specify the type for tchat
; it will be used by default.
ACTION
The action
type allows you to send a message to the player's action bar. You need to specify the type like this:
WITHOUT_PREFIX
The without_prefix
type is used to send a message without a prefix. By default, all messages will include a prefix. To remove the prefix, you need to specify the type like this:
NONE
This type does not send the message.
CENTER
To send a message that will be centered in your chat, you need to specify the type like this:
BOSSBAR
To create a bossbar, you need to do it like this:
The bossbar uses the MiniMessage API. To find the values for color, overlay or flags please refer to the MiniMessage documentation.
TITLE
To send a title to the player, you must specify the title like this:
Multi messages
You can send multiple messages at the same time, regardless of the type of message. Simply follow the documentation and apply the same example format to all message types. Here’s how to send multiple messages simultaneously:
You must send a list with the type and corresponding configuration. The TCHAT
type will always be the default; for other types, you are required to specify them explicitly.
Files
English
Français
Italiano
German
Last updated