Messages and languages
Editing messages, sending them as chat, titles, action bars or boss bars, and adding your own language.
Every message players see is in plugins/SeasonForge/lang/. English (en_US), French (fr_FR) and Spanish (es_ES) are included. Pick one with language: in config.yml and run /battlepass admin reload.
Editing a message
Messages use MiniMessage (<#f2b544>, <bold>, <click:...>), and the old & colour codes also work. %prefix% puts in the prefix from the top of the file.
claim:
claimed-free: "%prefix%<white>Claimed the level <#f2b544>%level%</#f2b544> free reward."- Set a message to
""to turn it off. - A message can be a list of lines.
- PlaceholderAPI placeholders work in every message.
Chat, title, action bar and boss bar
A message written as a block instead of a line can go to several places at once:
season:
started:
chat:
- ""
- " <#f2b544><bold>A NEW SEASON HAS STARTED</bold>"
- ""
title: "%season%"
subtitle: "<white>A new season has started"
bossbar:
text: "<#f2b544>%season% <white>has started!"
colour: YELLOW
seconds: 10| Key | What it does |
|---|---|
chat | One line or a list of lines in chat |
title / subtitle | A title on screen |
fade-in, stay, fade-out | Title timings in ticks (20 ticks is one second) |
actionbar | A line above the hotbar |
bossbar.text | A boss bar at the top of the screen |
bossbar.colour | PINK, BLUE, RED, GREEN, YELLOW, PURPLE or WHITE |
bossbar.progress | How full the bar is, 0.0 to 1.0 |
bossbar.seconds | How long it stays |
Leave a part out (or empty) to skip it. Any message can be turned into a block like this, for example to show the quest completed message as a title only.
What is in the file
| Section | Messages for |
|---|---|
prefix | Put in front of chat messages through %prefix% |
season | Season started, ended, and no season running |
level-up | Level up chat (one level and several), and the title |
premium | Premium unlocked, rewards waiting, broadcast, cannot buy |
rewards | Inventory full, saved items |
claim | Claimed, Claim All summary, locked rewards |
quests | Quest completed, the progress action bar, reset announcements |
shop | Bought, not enough, limit reached, max level, currency missing |
hook | The hook command is no longer needed |
reset-names | Names of the reset types ("Daily", "Permanent" for NONE) |
words | Small words: Yes, No, Max, Never, Free, Premium, Active, Not owned, Unlimited |
errors | No permission, unknown player, bad number, database errors |
help | Both help pages, one line per command, and the page arrows |
admin | Replies to every admin command and the season info lines |
The words section is also where placeholders take their Yes and No, so %battlepass_premium% shows whatever you write there.
Your own language
Copy a file
Copy lang/en_US.yml to a new file named in Java locale style, for example lang/de_DE.yml.
Translate
Translate the text. Leave the keys and the %placeholders% as they are.
Select it
Set language: de_DE in config.yml and run /battlepass admin reload.
Any key missing from your file falls back to the English text, so a half finished translation still works. If the file named in language: does not exist, the console says so and English is used.
The three bundled files get new keys added on plugin updates. Your own language files are read as they are, and new keys show in English until you add them.