summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol_1_13.cpp8
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;
}