Translations
1 Language
Every piece of text used by the plugin in chat messages, commands, menu’s… can be changed. You can do this by editing the files in the languages directory.
In the config.yml you can enter the name of the language file the plugin should use (without the .yml file extension).
settings:
language: 'nl'1.1 Examples
An example of the messages looks like this.
cmdSetRankNotExist: '&7De rang &8{0} &7bestaat niet!'
cmdSetRankSender: '&7Je hebt de rang van &8{0} &7aangepast naar &8{1}&7!'
cmdSetRankTarget: '&7Je rang is aangepast naar &8{0}&7!'By default, dutch and english languages are included.
1.2 Command arguments
Since KingdomCraft 7.1.0 it is possible to also translate commands and command arguments in the /k help command.
cmdHelpArgumentPlayer: 'speler'
cmdHelpArgumentName: 'naam'
cmdHelpArgumentMessage: 'bericht'The above example will translate the arguments part of the command /k kick <player> to /k kick <speler> in the help overview. If you want to translate commands, check out command remapping.