mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
37 lines
1.7 KiB
Diff
37 lines
1.7 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
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
|
||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||
|
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
|
||
|
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
|
||
|
@@ -0,0 +0,0 @@ import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
|
||
|
public class EntityPlayer extends EntityHuman implements ICrafting {
|
||
|
|
||
|
private static final Logger bL = LogManager.getLogger();
|
||
|
- 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
|
||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
||
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
||
|
@@ -0,0 +0,0 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||
|
getHandle().playerConnection.sendPacket( packet );
|
||
|
}
|
||
|
}
|
||
|
+
|
||
|
+ @Override
|
||
|
+ public String getLocale()
|
||
|
+ {
|
||
|
+ return getHandle().locale;
|
||
|
+ }
|
||
|
};
|
||
|
|
||
|
public Player.Spigot spigot()
|
||
|
--
|