From 274304b8ca4f1f84cdd5d0746fef9bbe59a59862 Mon Sep 17 00:00:00 2001 From: MiniDigger Date: Fri, 26 May 2017 23:37:06 +0200 Subject: SPIGOT-439: Add player locale related APIs. --- src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 92b4bc9a..4764e70a 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -15,7 +15,6 @@ import java.util.Collection; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.List; -import java.util.Locale; import java.util.Map; import java.util.Set; import java.util.UUID; @@ -1446,4 +1445,9 @@ public class CraftPlayer extends CraftHumanEntity implements Player { return new CraftAdvancementProgress(craft, data, progress); } + + @Override + public String getLocale() { + return getHandle().locale; + } } -- cgit v1.2.3