mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-03 13:36:44 +01:00
Added Player.sendRawMessage().
This commit is contained in:
parent
0ac5c7f4cf
commit
49a3d5bfb3
1 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,10 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||
this.entity = entity;
|
||||
}
|
||||
|
||||
public void sendRawMessage(String message) {
|
||||
getHandle().a.b(new Packet3Chat(message));
|
||||
}
|
||||
|
||||
public void sendMessage(String message) {
|
||||
for (final String line: TextWrapper.wrapText(message)) {
|
||||
getHandle().a.b(new Packet3Chat(line));
|
||||
|
|
Loading…
Reference in a new issue