From 49a3d5bfb353864ee5e0206fd3cbfe5193106b7e Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 12 Mar 2011 01:05:34 -0800 Subject: Added Player.sendRawMessage(). --- src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 1bd194d8..79a15360 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -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)); -- cgit v1.2.3