summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsk89q <the.sk89q@gmail.com>2011-03-12 01:05:34 -0800
committersk89q <the.sk89q@gmail.com>2011-03-12 01:06:04 -0800
commit49a3d5bfb353864ee5e0206fd3cbfe5193106b7e (patch)
tree3354ac66ab687108004766bb2137d8eacdaa9830 /src
parent0ac5c7f4cf10b258d30ae5d1fcf3281da7e847e6 (diff)
downloadcraftbukkit-49a3d5bfb353864ee5e0206fd3cbfe5193106b7e.tar
craftbukkit-49a3d5bfb353864ee5e0206fd3cbfe5193106b7e.tar.gz
craftbukkit-49a3d5bfb353864ee5e0206fd3cbfe5193106b7e.tar.lz
craftbukkit-49a3d5bfb353864ee5e0206fd3cbfe5193106b7e.tar.xz
craftbukkit-49a3d5bfb353864ee5e0206fd3cbfe5193106b7e.zip
Added Player.sendRawMessage().
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java4
1 files changed, 4 insertions, 0 deletions
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));