MCPcopy Create free account
hub / github.com/cuberite/cuberite / HandleServerPluginMessage

Method HandleServerPluginMessage

Tools/ProtoProxy/Connection.cpp:2034–2048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2032
2033
2034bool cConnection::HandleServerPluginMessage(void)
2035{
2036 HANDLE_SERVER_PACKET_READ(ReadVarUTF8String, AString, ChannelName);
2037 HANDLE_SERVER_PACKET_READ(ReadBEShort, short, Length);
2038 AString Data;
2039 if (!m_ServerBuffer.ReadString(Data, Length))
2040 {
2041 return false;
2042 }
2043 Log("Received a PACKET_PLUGIN_MESSAGE from the server");
2044 Log(" ChannelName = \"%s\"", ChannelName.c_str());
2045 DataLog(Data.data(), Length, " Data: %d bytes", Length);
2046 COPY_TO_CLIENT();
2047 return true;
2048}
2049
2050
2051

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.80
ReadStringMethod · 0.45

Tested by

no test coverage detected