Use the display format defined by plugins

Dieser Commit ist enthalten in:
Dinnerbone 2011-01-07 13:34:24 +00:00
Ursprung e3e8e99fe7
Commit 2e0413558f

Datei anzeigen

@ -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