Archiviert
13
0

Player display name is shown in chat

Dieser Commit ist enthalten in:
Dinnerbone 2011-01-07 13:28:23 +00:00
Ursprung 8c10938f69
Commit e3e8e99fe7
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -432,7 +432,7 @@ implements ICommandListener {
// CraftBukkit start // CraftBukkit start
PlayerChatEvent event = new PlayerChatEvent(Type.PLAYER_CHAT, player, s); PlayerChatEvent event = new PlayerChatEvent(Type.PLAYER_CHAT, player, s);
server.getPluginManager().callEvent(event); 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; if (event.isCancelled()) return;
// CraftBukkit stop // CraftBukkit stop

Datei anzeigen

@ -52,7 +52,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
return name; return name;
} }
public void getDisplayName(final String name) { public void setDisplayName(final String name) {
this.name = name; this.name = name;
} }