# Lang Configuration

## JSON Messages

Player Businesses supports the ability to use JSON formatting in your messages, for you to add clickable commands, hover events and more!

If you wish to add colors to your JSON text, you'll find that the client will stop registering the color when it goes on the next line. You can use the in-built JSON color to solve that.

For you to easily create the JSON format, you can use this site [here](https://www.minecraftjson.com) and start to create text. Then copy the command it gives you and remove the `/tellraw @p`from the command so its just JSON.

Also, make sure you select the version below on the site that you're using, have fun creating cool looking JSON messages!

If you need some help formatting or using the site to format your JSON, come and join our discord and we will help you!

## MiniMessage Support

Player Businesses supports the [MiniMessage](https://docs.adventure.kyori.net/minimessage/index.html) library, this allows you to easily add clickable commands, hover events and more! You can use this generator [here](https://webui.advntr.dev/) to make your life so much easier.

MiniMessage is more advanced, modern and easier than using JSON Messages. All you need to do is make sure you have the proper message syntax in your message and the plugin will recognise it as a mini message.

Please note that MiniMessage is only supported from 1.16.5 and above, for an alternative you will need to use JSON messages.

If you are experiencing any issues with MiniMessage formatting and quotes not being escaped properly in variables. Please note that you can use `<escape_quotes>%Variable%</escape_quotes>` to escape quotes in variables. This will ensure the MiniMessage parser handles them correctly.

## Message Placeholders

Player Businesses supports all types of message placeholders that you can use in your messages, there are two types of placeholders and these are `global` and `individual`. Global placeholders allow you to use these placeholders in any message of the plugin. Individual placeholders are only set placeholders for that specific message.

Here is a list of the current global placeholders. Remember, you can also use [PlaceholderAPI](https://docs.olziedev.com/projects/playerbusinesses/plugins#placeholderapi) placeholders in all the messages as well.

| Placeholder   | Description                                                         |
| ------------- | ------------------------------------------------------------------- |
| %prefix%      | Shows the prefix set in your lang file.                             |
| %player%      | Shows the players name that is receiving the message.               |
| %displayname% | Shows the display name of the player that is receiving the message. |

If you're looking for the individual placeholders, the default placeholders that can be used in that message is in the default configuration for that message already.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.olziedev.com/projects/playerbusinesses/configuration/lang.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
