diff options
author | 12xx12 <44411062+12xx12@users.noreply.github.com> | 2020-08-05 20:55:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-05 20:55:19 +0200 |
commit | 5176c22656a8fb5485ab04100daa93bb761bb8f6 (patch) | |
tree | 2595e17608bbe40d2593fa465527c709ef44fb4d | |
parent | Update Core (diff) | |
download | cuberite-5176c22656a8fb5485ab04100daa93bb761bb8f6.tar cuberite-5176c22656a8fb5485ab04100daa93bb761bb8f6.tar.gz cuberite-5176c22656a8fb5485ab04100daa93bb761bb8f6.tar.bz2 cuberite-5176c22656a8fb5485ab04100daa93bb761bb8f6.tar.lz cuberite-5176c22656a8fb5485ab04100daa93bb761bb8f6.tar.xz cuberite-5176c22656a8fb5485ab04100daa93bb761bb8f6.tar.zst cuberite-5176c22656a8fb5485ab04100daa93bb761bb8f6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol_1_13.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Protocol/Protocol_1_13.cpp b/src/Protocol/Protocol_1_13.cpp index 3ca1cc3a8..94dc39ea9 100644 --- a/src/Protocol/Protocol_1_13.cpp +++ b/src/Protocol/Protocol_1_13.cpp @@ -133,7 +133,11 @@ void cProtocol_1_13::SendParticleEffect(const AString & a_ParticleName, Vector3f void cProtocol_1_13::SendPluginMessage(const AString & a_Channel, const AString & a_Message) { - // TODO + ASSERT(m_State == 3); // In game mode? + + cPacketizer Pkt(*this, pktPluginMessage); + Pkt.WriteString(a_Channel); + Pkt.WriteString(a_Message); } @@ -240,7 +244,7 @@ void cProtocol_1_13::HandlePacketPluginMessage(cByteBuffer & a_ByteBuffer) m_Client->SetClientBrand(Brand); // Send back our brand, including the length: - SendPluginMessage("minecraft:brand", "\x08""Cuberite"); + SendPluginMessage("minecraft:brand", "Cuberite"); return; } |