testserver/Bukkit-Patches/0018-Implement-Locale-Gette...

31 lines
951 B
Diff
Raw Normal View History

2015-06-20 23:24:26 +00:00
From ebf11313636c42d00d968199ea8073fec321d2d7 Mon Sep 17 00:00:00 2001
From: Smove <jan@lavasurvival.net>
Date: Sat, 1 Feb 2014 18:10:49 +1100
Subject: [PATCH] Implement Locale Getter for Players
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
2015-06-20 23:24:26 +00:00
index 9c473a5..9c69579 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
2015-06-20 23:24:26 +00:00
@@ -1104,6 +1104,16 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
{
throw new UnsupportedOperationException( "Not supported yet." );
}
+
+ /**
+ * Gets player locale language.
+ *
+ * @return the player's client language settings
+ */
+ public String getLocale()
+ {
+ throw new UnsupportedOperationException( "Not supported yet." );
+ }
}
Spigot spigot();
--
2015-05-25 12:05:40 +00:00
2.1.4