Templates
Templates live in config.yml under broadcast.templates. The console picks one by name. You can define as many as you want — one per tier, per event, per server.
Structure
Section titled “Structure”broadcast: templates: <name>: events: player-head: true|false reward-event: true|false discord-webhook: true|false
title: enabled: true up: "&#FFD700{player}" down: "&fPurchased &FF35{package} &7({price})"
sound: enabled: true id: ENTITY_PLAYER_LEVELUP
actionbar: enabled: true message: "CFF5A{player} &fpurchased �FFAA{package}"
bossbar: enabled: true text: "&fPurchased &FF35{package} &7({price})" color: GREEN style: SOLID duration: 5 animated: false
message: - "<chat line>"Default templates: one (single purchase) and multiple (multi-package).
Examples
Section titled “Examples”broadcast: templates: one: events: player-head: true reward-event: true discord-webhook: true
title: enabled: true up: "&#FFD700{player}" down: "&fPurchased &FF35{package} &7({price})"
sound: enabled: true id: ENTITY_PLAYER_LEVELUP
actionbar: enabled: true message: "CFF5A{player} &fpurchased �FFAA{package}"
bossbar: enabled: false
message: - " BFF20&lGG IN THE CHAT! 🛒" - "<empty>" - " BFF3D@{player} &fhas purchased �FFAA{package}&f!" - " &fVisit our store &#FCFF1Bstore.server.com" - "<empty>" - "&7&o (( Thank you for supporting the server ))"broadcast: templates: multiple: events: player-head: false reward-event: false discord-webhook: true
title: enabled: true up: "&#FFD700{player}" down: "&fPurchased &7({price})"
sound: enabled: true id: ENTITY_PLAYER_LEVELUP
actionbar: enabled: true message: "CFF5A{player} &fpurchased �FFAA{package}"
bossbar: enabled: true text: "�FFAA✨ NEW STORE PURCHASE ✨" color: GREEN style: SOLID duration: 5 animated: false
message: - "<center>BFF3D&lNew purchase 🎉</center>" - "<empty>" - "<center>&#E9FF1B{player} &fjust purchased!</center>" - "<center>&7(List of all purchases)</center>" - "<empty>" - "<center>{package}</center>" - "<empty>" - "%buttons%"Message tags
Section titled “Message tags”| Tag | Description |
|---|---|
<empty> | Blank line. |
<center>text</center> | Center the text in chat. |
%buttons% | Render every configured button. |
%button_<id>% | Render a single button by id. |
Events
Section titled “Events”| Key | Behavior |
|---|---|
player-head | Render the buyer’s head next to the message (via HeadRender). |
reward-event | Start the chat reward event. |
discord-webhook | Send the purchase to the webhook. |
title: enabled: true up: "&#FFD700{player}" down: "&fPurchased &FF35{package} &7({price})"Broadcast to every online player.
sound: enabled: true id: ENTITY_PLAYER_LEVELUPid is any valid Bukkit sound enum.
ActionBar
Section titled “ActionBar”actionbar: enabled: true message: "CFF5A{player} &fpurchased �FFAA{package}"BossBar
Section titled “BossBar”bossbar: enabled: true text: "&fPurchased &FF35{package} &7({price})" color: GREEN style: SOLID duration: 5 animated: false| Field | Accepted values |
|---|---|
color | PINK, BLUE, RED, GREEN, YELLOW, PURPLE, WHITE |
style | SOLID, SEGMENTED_6, SEGMENTED_10, SEGMENTED_12, SEGMENTED_20 |
duration | Seconds. |
animated | true empties the bar over duration. |