Skip to content

Buttons

Buttons allow you to create clickable chat components that players can interact with.

They are commonly used to open the server store, Discord, or other links directly from the broadcast message.

Main configuration section:

buttons:

Buttons can be inserted inside broadcast messages using placeholders.


Buttons are inserted in broadcast messages using:

%buttons%

This placeholder will display all configured buttons.

Example:

message:
- "<center>&aNew purchase!</center>"
- "<empty>"
- "%buttons%"

You can also display a single button.

Format:

%button_<id>%

Example:

%button_shop%

Buttons can be visually centered by adding spaces before them.

buttons:
center: 20

This value defines how many spaces are added before the buttons.


Buttons are defined inside the list section.

Example:

buttons:
center: 20
list:
shop:
text: "<gradient:#72FF76:#17EA25>[ Open Shop ]</gradient>"
hover: "<gradient:#72FF76:#17EA25>Click to open the store</gradient>"
open_url: "https://shop.yourserver.com/"
discord:
text: "<gradient:#72C0FF:#1750EA>[ Join Discord ]</gradient>"
hover: "<gradient:#72C0FF:#1750EA>Click to join the community</gradient>"
open_url: "https://discord.gg/example"

text:

Text displayed in chat.

Supports:

  • hex colors
  • gradients
  • formatting

Example:

<gradient:#72FF76:#17EA25>[ Open Shop ]</gradient>

hover:

Text shown when the player hovers the mouse over the button.

Example:

Click to open the store

open_url:

URL opened when the button is clicked.

Example:

https://shop.yourserver.com/

Broadcast message example:

message:
- "<center>&aNew purchase!</center>"
- "<empty>"
- "%button_shop%"
- "%button_discord%"

Or display all buttons:

message:
- "%buttons%"

You can create unlimited buttons.

Example:

buttons:
list:
website:
text: "&e[ Visit Website ]"
hover: "&fClick to open the website"
open_url: "https://example.com"

Usage:

%button_website%