diff options
Diffstat (limited to 'src/main/java/org/bukkit/entity/Player.java')
-rw-r--r-- | src/main/java/org/bukkit/entity/Player.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index 92604ab3..33f6e6dc 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java @@ -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(); } |