Store announcements¶
Announcing what somebody bought.
This is the single highest-earning line of text a server prints. Seeing a purchase announced is the closest a Minecraft server gets to social proof, and stores that announce sell more than stores that do not.
Setting it up¶
Nothing here talks to your store or to the internet. Your store already knows a payment happened and already has a way to run a console command when one does - this formats the message.
Tebex or Buycraft: add one line to the package's command list.
{name} is Tebex's placeholder for the buyer. Everything after it is the
package name, and it may contain spaces.
Use player instead of all to send only the private thank-you, which is what
you want for anything somebody might not want announced.
The wording¶
All of it is in donations.yml, as MiniMessage:
broadcast:
- "<dark_gray>▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬"
- " <gradient:#ec407a:#ff8a3c><bold>NEW DONATION</bold></gradient>"
- "%sale%"
- " <#ffca28>✦ <white>%player% <#90a4ae>just purchased"
- " <#66ffa6><bold>%package%</bold> <#66bb6a>GG!"
- ""
- " <#546e7a>View the store with <white>/store"
- "<dark_gray>▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬"
| Placeholder | Is |
|---|---|
%player% |
Who bought it |
%package% |
What they bought |
%online% |
How many people are watching |
%sale% |
The sale line, or nothing when the sale is off |
%sale% is why you can leave the sale line in place all year. Toggle it with:
which writes back to the file.
The sound¶
sound: plays to everybody on a public announcement. It does as much work as
the text - people look up for it. Set it blank for silence.
The thank-you¶
thank-you: is sent privately to the buyer. It is worth keeping warm: it is the
last thing somebody reads after paying you.