Skip to content

Localization

Matej edited this page Jan 2, 2025 · 9 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.

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

Listing and changing a localization

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

Custom 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

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 [!]

You can either remove them completely in language file (search for "prefix-"), or prepend messages that should not have them added with "@noprefix" such as this example.

Clone this wiki locally