Skip to content

LanguagePlayer

Diogo Correia edited this page Aug 1, 2018 · 4 revisions

Why is it useful? LanguagePlayer is an object that stores the player language.

How to get it?
Here is an example code

LanguagePlayer lp = PlayerData.getData(player);

where lp is the LanguagePlayer instance and player is the Spigot Player object.

To get the Player's language, simply use lp.getLang().

References:

Clone this wiki locally