mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-13 02:11:05 +01:00
Implemented chat recipients
This commit is contained in:
parent
bdc8c84041
commit
cb2ff3c8bb
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue