1
0
Fork 0

imprementing plugin message to send server brand (#4786)

* fixed issue #4773


Co-authored-by: 12xx12 <12xx12100@gmail.com>
This commit is contained in:
12xx12 2020-08-05 20:55:19 +02:00 committed by GitHub
parent 213d749f43
commit 5176c22656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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;
}