XDPXI's Documentation
Client

Language Utilities

import dev.xdpxi.xdlib.api.v7.LangUtil;

Getting the Language

To get the language that the client is using you can call

LangUtil.getLang();

It will return a string of the language file, e.g. en-us

Changing the Language

To change the language that the client is using you can use

LangUtil.setLang("en_us");