SPIGOT-439: Add player locale related APIs.

By: MiniDigger <admin@minidigger.me>
This commit is contained in:
Bukkit/Spigot
2017-05-26 23:31:07 +02:00
parent d42ac41060
commit 6e76dbda88
2 changed files with 50 additions and 0 deletions

View File

@ -1403,4 +1403,17 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
* @return object detailing the player's progress
*/
public AdvancementProgress getAdvancementProgress(Advancement advancement);
/**
* Gets the player's current locale.
*
* The value of the locale String is not defined properly.
* <br>
* The vanilla Minecraft client will use lowercase language / country pairs
* separated by an underscore, but custom resource packs may use any format
* they wish.
*
* @return the player's locale
*/
public String getLocale();
}