Configuration
Main configuration file:
config.ymlCustom Arguments
Section titled “Custom Arguments”Defines the arguments that can be used in broadcast commands.
These arguments become placeholders usable inside templates, titles, messages, actionbars, bossbars and Discord webhooks.
customs-args: - player - package - priceExample console command:
/tebexmessage one player(Senkex) package(VIP Rank) price($10)Usage inside messages:
{player}{package}{price}Separator Symbol
Section titled “Separator Symbol”Defines the symbol used when multiple packages are included in a single purchase.
separator-symbol: "&7•"Example input:
package(VIP;Legend;Key)Output displayed in messages:
VIP • Legend • KeyBroadcast Templates
Section titled “Broadcast Templates”Templates define how purchase announcements are displayed.
broadcast: templates:Each template contains the full broadcast layout including:
- chat message
- titles
- sounds
- actionbars
- bossbars
- events
- buttons
Example template structure:
broadcast: templates: one: events: player-head: true reward-event: true discord-webhook: true
message: - "<center>&aNew purchase!</center>" - "<center>{player} bought {package}</center>"The template name is used in the console command.
Example:
/tebexmessage one player(Senkex) package(VIP) price($10)Message Tags
Section titled “Message Tags”Special tags can be used inside broadcast messages.
<empty>Adds a blank line.
<center>text</center>Centers text in chat.
%buttons%Displays all configured buttons.
%button_id%Displays a specific button.
Example:
%button_shop%Events
Section titled “Events”Templates can trigger optional features.
events: player-head: true reward-event: true discord-webhook: trueAvailable events:
- player-head → displays the player’s head next to the message
- reward-event → starts the reward event
- discord-webhook → sends purchase information to Discord
Displays a title on the player’s screen.
title: enabled: true type: GLOBAL up: "{player}" down: "Purchased {package}"Types:
GLOBALVisible to all players.
PLAYERVisible only to the buyer.
Plays a sound when the purchase broadcast is sent.
sound: enabled: true type: GLOBAL id: ENTITY_PLAYER_LEVELUPThe id must be a valid Bukkit sound.
ActionBar
Section titled “ActionBar”Displays a message above the hotbar.
actionbar: enabled: true message: "{player} purchased {package}"Actionbars support single-line messages only.
BossBar
Section titled “BossBar”Displays a bossbar message at the top of the screen.
bossbar: enabled: true text: "Purchased {package}" color: GREEN style: SOLID duration: 5 animated: falseDuration is defined in seconds.
Buttons
Section titled “Buttons”Buttons allow clickable chat components.
buttons: center: 20 list:Example button:
buttons: list: shop: text: "&a[ Open Shop ]" hover: "&fClick to open the store" open_url: "https://shop.example.com"Usage inside messages:
%buttons%Or a specific button:
%button_shop%Reward Event
Section titled “Reward Event”Reward events allow players to type a word in chat to receive rewards.
reward-event: words: - "gg"
players-write-word: 30
ignore-case: truePlayers must type one of the configured words to participate.
Reward Commands
Section titled “Reward Commands”Commands executed for players that participated in the reward event.
players-rewards-commands: - "give %player% minecraft:diamond 1"%player% is replaced with the player name.
Final Reward Message
Section titled “Final Reward Message”Message broadcasted when the reward event finishes.
final-message: enabled: true message: - "<center>&aReward Event Finished</center>" - "<center>%players_reward_claimed%</center>"Placeholder:
%players_reward_claimed%Displays the list of players who received rewards.