Skip to content

LanguagePlayer

Diogo Correia edited this page Dec 29, 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

Triton triton = TritonAPI.getInstance();
PlayerManager playerManager = triton.getPlayerManager();
LanguagePlayer lp = playerManager.get(uuid);

JavaDoc references:

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

Clone this wiki locally