LanguageAPI 1.0.0

A api to set player language

  1. DeeChael
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Languages Supported:
    English
    LanguageAPI
    What can this plugin do?
    I have some plugin with player multi language
    Player can set themselves language
    But
    If plugin is more and more
    Set their language will be a trouble
    So I make this api to set player language
    For developer:
    add this plugin to your libs
    import my main class
    Code (Java):
    import net.DeeChael.LanguageAPI.LAPI;

    Then use
    Code (Text):
    LAPI.getPlayerLanguage(Player);

    //return String

    to check player language
    then send language message to player

    For server owner:
    put this plugin into plugins folder
    (if your plugin depend this)
    start the server
    edit the config.yml
    Code (YAML):
    #this just is language api language of console
    console-language
    : "en_US"
    #plz put language in this list
    #if no player cannot switch language
    language-list
    :
    - "en_US"
    - "zh_CN"
    add language into language-list
    then reload the plugin with command "lapi reload"
    use command "lang <language name>" to set your language​