Skip to content

Localization Configuration

Joshua edited this page Aug 15, 2021 · 6 revisions

In the future, SafeChat will support multiple languages.
At the moment by default it will only support english but you can modify the messages however you would like,
any contributions are appreciated.

Available locales

Language name Locale value
English en

Editing messages

To edit your locale messages, all you need to do is get the latest version of messages.properties.
After you download your locale, drop it into the SafeChat directory and modify the messages there.
Reload the plugin with /safechat reload and it will detect any changes and import them.

Using multiple lines in a message

With this properties file, it is possible to add multiple lines to a message.
In order to add multiple lines you need to append \n \ to the end of the line, here is an example:

version_command=&7This server is running SafeChat version &e{version}&7 on &e{server_version} \n \
  &cYour version is outdated! Download the latest version here: https://github.com/Jochyoua/SafeChatX/releases

Clone this wiki locally