mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-14 05:33:56 +01:00
Implemented Player.sendMessage()
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
827ed5aa40
commit
19dcaeeb01
1 changed files with 5 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue