summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-09 11:39:42 +0100
committermadmaxoft <github@xoft.cz>2014-01-09 11:39:42 +0100
commitfe978f0d1e01e284b591e1d5a08ebb24161fd587 (patch)
treefb8c1c28e7e35d5b6fe34373636d0c27c6881397 /src/Protocol/Protocol17x.cpp
parentComposition generator creating moved to a separate function. (diff)
downloadcuberite-fe978f0d1e01e284b591e1d5a08ebb24161fd587.tar
cuberite-fe978f0d1e01e284b591e1d5a08ebb24161fd587.tar.gz
cuberite-fe978f0d1e01e284b591e1d5a08ebb24161fd587.tar.bz2
cuberite-fe978f0d1e01e284b591e1d5a08ebb24161fd587.tar.lz
cuberite-fe978f0d1e01e284b591e1d5a08ebb24161fd587.tar.xz
cuberite-fe978f0d1e01e284b591e1d5a08ebb24161fd587.tar.zst
cuberite-fe978f0d1e01e284b591e1d5a08ebb24161fd587.zip
Diffstat (limited to 'src/Protocol/Protocol17x.cpp')
-rw-r--r--src/Protocol/Protocol17x.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index 8ec5dec29..c64aa0881 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -628,6 +628,18 @@ void cProtocol172::SendPlayerSpawn(const cPlayer & a_Player)
+void cProtocol172::SendPluginMessage(const AString & a_Channel, const AString & a_Message)
+{
+ cPacketizer Pkt(*this, 0x17);
+ Pkt.WriteString(a_Channel);
+ Pkt.WriteShort((short)a_Message.size());
+ Pkt.WriteBuf(a_Message.data(), a_Message.size());
+}
+
+
+
+
+
void cProtocol172::SendRemoveEntityEffect(const cEntity & a_Entity, int a_EffectID)
{
cPacketizer Pkt(*this, 0x1E);