-
Notifications
You must be signed in to change notification settings - Fork 34
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:
- Triton
- TritonAPI
- TritonAPI.getInstance()
- PlayerManager
- Triton#getPlayerManager()
- LanguagePlayer
- PlayerManager#get(UUID)
To get the Player's language, simply use lp.getLang()
.