summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-01-07 13:28:23 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-01-07 13:35:10 +0000
commite3e8e99fe746828568b1ddd2f15c975645cc14e8 (patch)
treeba39d323c93dd55883a750bd7725e59978a41888 /src/main/java/net/minecraft/server
parent8c10938f69a1ee7daddb5aaa3579b2c9e12519b1 (diff)
downloadcraftbukkit-e3e8e99fe746828568b1ddd2f15c975645cc14e8.tar
craftbukkit-e3e8e99fe746828568b1ddd2f15c975645cc14e8.tar.gz
craftbukkit-e3e8e99fe746828568b1ddd2f15c975645cc14e8.tar.lz
craftbukkit-e3e8e99fe746828568b1ddd2f15c975645cc14e8.tar.xz
craftbukkit-e3e8e99fe746828568b1ddd2f15c975645cc14e8.zip
Player display name is shown in chat
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java
index ebf2d34d..0f20fc1c 100644
--- a/src/main/java/net/minecraft/server/NetServerHandler.java
+++ b/src/main/java/net/minecraft/server/NetServerHandler.java
@@ -432,7 +432,7 @@ implements ICommandListener {
// CraftBukkit start
PlayerChatEvent event = new PlayerChatEvent(Type.PLAYER_CHAT, player, s);
server.getPluginManager().callEvent(event);
- s = (new StringBuilder()).append("<").append(event.getPlayer().getName()).append("> ").append(event.getMessage()).toString();
+ s = (new StringBuilder()).append("<").append(event.getPlayer().getDisplayName()).append("> ").append(event.getMessage()).toString();
if (event.isCancelled()) return;
// CraftBukkit stop