3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00

Implemented chat recipients

Dieser Commit ist enthalten in:
Dinnerbone 2011-02-26 19:37:19 +00:00
Ursprung bdc8c84041
Commit cb2ff3c8bb

Datei anzeigen

@ -623,8 +623,8 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
msg = String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage()); msg = String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage());
a.info(msg); a.info(msg);
for (final String line: TextWrapper.wrapText(msg)) { for (Player recipient : event.getRecipients()) {
this.d.f.a((Packet) (new Packet3Chat(line))); recipient.sendMessage(msg);
} }
// CraftBukkit end // CraftBukkit end
} }