Translating
Learn how to translate entities, inventories and plugin messages
Last updated
Was this helpful?
Learn how to translate entities, inventories and plugin messages
Last updated
Was this helpful?
Translating entities, inventories and plugin messages is very easy!
You have to and use a special pattern.
Remember to install or the translations won't work.
The plugin will handle all packets that the server sends to the client and it will translate them.
Here is an example to make it easy.
If you want to translate a menu, maybe a you just have to set the menu title to <lang>yourIdentifier</lang>
, remember to replace yourIdentifier
with the identifier of your translation.
You can also use more than one translation, for example if you want to create a custom plugin message like you will have to set the plugin message to: <lang>gamemode</lang> {0} <lang>for</lang> {1}.
This example has been made for essentials but you can adapt it for every plugin.
Click to join in our discord server, I'll help you!