Messages and languages¶
Language¶
Set language in config.yml and run /sg reload:
en– English (messages.yml)de– German (messages_de.yml)- your own language: put a translated
messages_<language>.yml(e.g.messages_fr.yml) intoplugins/SurvivalGamesand setlanguage: fr. Texts missing in your file are English.
Changing texts¶
All texts are in the messages file of your language. They use MiniMessage:
team_full: '<red>This team is full.'
game_won_solo: '<yellow>{0} <gold>has won in {1}<gold>!'
- Colors and formats:
<red>,<bold>,<#ff8800>,<gradient:gold:red>, ... Old color codes (&c) still work. {0},{1}, ... are replaced by names, numbers, ... Names of players are inserted as plain text.- Write
\<for a normal<. - Several lines of item texts are separated by
\n. - The prefix of all messages is
prefixinconfig.yml(empty: none).
Clickable commands¶
Commands in messages can be clicked:
<run:"/sg team list">/sg team list</run>runs the command<suggest:"/sg team create ">...</suggest>puts it into the chat box (for commands that need more input)
When you update the plugin, new texts are added to your file – texts you changed stay as they are.