-
Notifications
You must be signed in to change notification settings - Fork 35
LanguagePlayer
Rexcantor edited this page Dec 13, 2016
·
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: