2015-04-09 03:41:04 +00:00
|
|
|
From 5c31df4ceeb0b2cb8b3997dc8cbeeadac7836a25 Mon Sep 17 00:00:00 2001
|
2014-07-21 20:46:54 +00:00
|
|
|
From: Smove <jan@lavasurvival.net>
|
|
|
|
Date: Sat, 1 Feb 2014 18:12:16 +1100
|
|
|
|
Subject: [PATCH] Implement Locale Getter for Players
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java
|
2015-02-28 11:36:22 +00:00
|
|
|
index 5751844..3854edf 100644
|
2014-07-21 20:46:54 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
|
2014-11-28 01:17:45 +00:00
|
|
|
@@ -27,7 +27,7 @@ import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
|
2014-07-21 20:46:54 +00:00
|
|
|
public class EntityPlayer extends EntityHuman implements ICrafting {
|
|
|
|
|
2015-02-28 11:36:22 +00:00
|
|
|
private static final Logger bH = LogManager.getLogger();
|
2014-07-21 20:46:54 +00:00
|
|
|
- private String locale = "en_US";
|
|
|
|
+ public String locale = "en_US"; // Spigot
|
|
|
|
public PlayerConnection playerConnection;
|
|
|
|
public final MinecraftServer server;
|
|
|
|
public final PlayerInteractManager playerInteractManager;
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
2015-04-09 03:18:56 +00:00
|
|
|
index 023733e..05babef 100644
|
2014-07-21 20:46:54 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
2014-12-21 01:09:49 +00:00
|
|
|
@@ -1401,6 +1401,12 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
2014-07-21 20:46:54 +00:00
|
|
|
getHandle().playerConnection.sendPacket( packet );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public String getLocale()
|
|
|
|
+ {
|
|
|
|
+ return getHandle().locale;
|
|
|
|
+ }
|
|
|
|
};
|
|
|
|
|
|
|
|
public Player.Spigot spigot()
|
|
|
|
--
|
2014-11-28 01:17:45 +00:00
|
|
|
2.1.0
|
2014-07-21 20:46:54 +00:00
|
|
|
|