table-treeLanguages structure

See how to configure the language settings for plugins.

Plugin language files are designed to translate texts or create messages.

Sections

Sections in the language configuration are used to access texts. Various parts of the plugins use sections in the language.

Sections that are already defined by the plugin SHOULD NOT BE CHANGED OR DELETED. The plugin accesses that section, and if it is changed incorrectly, it can generate or cause errors! Only change it if the section is only used in configuration files.

To access a section in a plugin text, simply use the lang placeholder tag:

#Lang file "en"
hi:
  player: "hi"
  
#Lang file "pt"
hi:
  player: "olá"

#Any other configuration file
config-text: "lang:[hi.player], %player%"

#Example
join-message: "lang:[hi.player], %player%"

Creating a custom section

In the language files, you can create your own translated text, creating another part of the configuration. Example:

You can access this text or use the same method as before:

"lang:[custom-text]"

Atualizado