1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-17 02:34:30 +01:00

Added Player.sendRawMessage().

By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2011-03-12 01:05:34 -08:00
parent c21d7cb77c
commit c79b4a6f88

View file

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