Skip to content

Localization

Matej edited this page Jan 18, 2025 · 12 revisions

Here, you'll learn how to change messages like "Wait (x) seconds before chatting again" in antispam, in" /chc announce" and many, many more.

ChatControl stores language keys in a json format, by default they are not exported to your folder.

Important: Some messages cannot be reloaded, you have to do a clean restart.

Available Languages

For a list of languages we support natively, see the Locale key in settings.yml.

Customizing Localization

  1. Type /chc dumplocale in the game. We will generate a lang/en_US.json file (or whatever language you used in the Locale key in settings.yml.
  2. Edit the file to your liking. Set a message to "none" to hide it if an empty value does not work.
  3. If a new version of the plugin adds more lang keys, simply re-run the command again to update your disk file. We will default to the embedded lang file in our plugin jar if a key is missing.

Tips

Hiding a message

To hide a message, set it to "none".

Using the right encoding

Make sure you save the language file in UTF-8 encoding. See Encoding for a tutorial.

Removing prefixes such as [X] or [!]

Search for "prefix-" and set those keys to "none" to hide the appropriate prefixes.

Clone this wiki locally