Sueta
MU

MultiLanguageSupport

0.1

Let your server plugins Multi-Language, read language from player Minecraft setting.

·Plugin

This plugin can let ALL plugin that message changeable support multi language.

*Notice: this is test release, maybe have many bugs, please DO NOT install on your production server!

Features:
* Read player language from player setting.
* Replace special format in chat box to player language.
* Automatic generate language files.

HowTo:

HowTo

This plugin will check every packet before sending to player,
when plugin detect special format,
will replace that format to player language

if player language don't enable
will use default language.

and plugin will check every player sending chat or command, if it contain special format, will remove it.

Install:
1. install ProtocolLib.
2. install plugin.
3. set your plugin message to format list below
4. let it message happen
5. plugin will automatic generate config files in plugin/MultiLanguageSupport/lang.
6. change lang files.
7. your server has Multi-Language now :)

Config:

Config
# debug: is plugin show debug message?
# language.default: Default language
# language.enable: Enable languages

debug: false
language:
  default: en_US
  enable:
  - en_US
  - zh_TW

Locales please see http://minecraft.gamepedia.com/Language to check.

Message Format:

Message Format
${filename,ymlformat,test1}
${filename,ymlformat,test2|var1,var2}

# this config is at lang/<Locale_name>/filename.yml content is
# use %s place your vars
ymlformat:
  test1: 'Im test1 message'
  test2: 'im test2 message have %s %s two vars :)'

Todo:
Item name / lore support
Entity name support
TitleBar support
ActionBar support
BossBar Support
Scoreboard support
PlayerList support
Sign support
Book support

sorry for my poor English, if anywhere is too hard to understand, please let me know :)

Similar projects

Plugin →