summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-01-07 13:34:24 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-01-07 13:35:10 +0000
commit2e0413558f19f8b92012eeea6f2c783b7f61743d (patch)
tree6b77af8adddd34825197e5a55cd570f0ef0a7305 /src/main/java/net
parente3e8e99fe746828568b1ddd2f15c975645cc14e8 (diff)
downloadcraftbukkit-2e0413558f19f8b92012eeea6f2c783b7f61743d.tar
craftbukkit-2e0413558f19f8b92012eeea6f2c783b7f61743d.tar.gz
craftbukkit-2e0413558f19f8b92012eeea6f2c783b7f61743d.tar.lz
craftbukkit-2e0413558f19f8b92012eeea6f2c783b7f61743d.tar.xz
craftbukkit-2e0413558f19f8b92012eeea6f2c783b7f61743d.zip
Use the display format defined by plugins
Diffstat (limited to 'src/main/java/net')
-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 0f20fc1c..0bdaa965 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().getDisplayName()).append("> ").append(event.getMessage()).toString();
+ s = String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage());
if (event.isCancelled()) return;
// CraftBukkit stop