PlayerLanguageAPI 1.0.1

Provides a language API

  1. Arektor
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    [​IMG] Donations will help me to keep up the work. It's a way for you to support me, and saying me thanks ;)

    PlayerLanguageAPI is a little API I wrote while getting bored, that make the task easier for devs to allow players having a language. THIS PLUGIN IS AN API ONLY AND DOES NOTHING ON ITS OWN. Except allowing players to select their language.

    There is only 3 usable methods, that are :
    Code (Text):
    It does return a value of type Languages that represent the actual selected language of the player player.

    Code (Text):
    It does return the player language as a string in lower cases. It's the same as doing LanguageAPI.getLanguage(player).toString().toLowerCase();

    Code (Text):
    LanguageAPI.setLanguage(player, Languages.FRENCH);
    This will set the selected language of the player player to french.

    Provided events:
    • getOldLanguage() : Return the language of the player before the change (Return type of Languages)
    • getNewLanguage() : Return the language of the player after the change (Return type of Languages)
    • getPlayer() : Return the player (Return type of Player)

    When doing so, you can check, for example, if the player is english or german then send him an english or german message depending on what is his language.

    This plugin also open a language selection menu when a player right-click with a nametag that :
    • Have a display name
    • Its display name doesn't start with ┬žo (the italic code)
    UPDATE 0.3: Now there is also the command /languages. You can enable or disable both of them in the config!

    Below are listed all the supported languages:
    • French
    • English
    • Dutch
    • German
    • Spanish
    • Italian
    • Portuguese
    • Arabic
    • Polish
    • Chinese

    I hope this API will be useful, any feedback / comment / idea / suggestion will be appreciated!

    To-do list:
    • Fix typos in the languages name in the Languages enum. (This will include that every config with portuguese messages will need to fix the typo too, for example)
    TriiNoxYs and Kieranlington like this.

Recent Updates

  1. Bugfix
  2. SQL Independency
  3. Out of bounds fix

Recent Reviews

  1. CreeperPolska
    Version: 1.0.1
    Good i love it but add hungarian language cuz im hungarian
    But i love it and add hungarian and romanian
  2. LuconianCraft
    Version: 0.4 - SQL SUPPORT!
    Very nice plugin! Really good for any MC Server! Gonna use it on my network. Keep up the good work! :)
  3. Salman
    Version: 0.3.3
    Nice API! Well done.
    can you add Arabic language? pm me if you want any help with it(I'm Arabian btw).
    1. Arektor
      Author's Response
      Will be added in 0.4 version! (If you could give me in PM the arabish versions of the plugin messages, would be cool :P)
  4. TheKerby_cz
    Version: 0.3.2
    Awesome! :D Can you please add MYSQL support? :D .
    1. Arektor
      Author's Response
      Will be done at the same time as the 0.7 update of my VampireZ plugin ;)
  5. JoseGamer628
    Version: 0.3.1
    Demasiado Cool Para Servidores Mundiales En Los Que Entran Muchos Jugadores Con Idiomas Diferentes :D
    1. Arektor
      Author's Response
      I haven't understand everything but..
      Gracias ;)
  6. Gomze
    Version: 0.2
    Wow. Really cool!
    I think i can use this for Shooter Games.
    Excelent work!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    1. Arektor
      Author's Response
      Thanks for your review ;) Feel free to PM me with a link to your plugin page if you want it in a new "Plugins using this API" part!