From bd53a823d2213af917a0065e64e20901b5974d80 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Thu, 30 Dec 2010 04:56:34 +0000 Subject: [PATCH] Implemented Player.sendMessage() --- src/org/bukkit/craftbukkit/CraftPlayer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/bukkit/craftbukkit/CraftPlayer.java b/src/org/bukkit/craftbukkit/CraftPlayer.java index c6d95a6978..9e6d44fb67 100644 --- a/src/org/bukkit/craftbukkit/CraftPlayer.java +++ b/src/org/bukkit/craftbukkit/CraftPlayer.java @@ -2,6 +2,7 @@ package org.bukkit.craftbukkit; import net.minecraft.server.EntityPlayerMP; +import net.minecraft.server.Packet3Chat; import org.bukkit.Player; public class CraftPlayer extends CraftHumanEntity implements Player { @@ -25,4 +26,8 @@ public class CraftPlayer extends CraftHumanEntity implements Player { public String toString() { return "CraftPlayer{" + "name=" + getName() + '}'; } + + public void sendMessage(String message) { + entity.a.b(new Packet3Chat(message)); + } }