imprementing plugin message to send server brand (#4786)
* fixed issue #4773 Co-authored-by: 12xx12 <12xx12100@gmail.com>
This commit is contained in:
parent
213d749f43
commit
5176c22656
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user