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

Method HandleClientPluginMessage

Tools/ProtoProxy/Connection.cpp:1109–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1107
1108
1109bool cConnection::HandleClientPluginMessage(void)
1110{
1111 HANDLE_CLIENT_PACKET_READ(ReadVarUTF8String, AString, ChannelName);
1112 HANDLE_CLIENT_PACKET_READ(ReadBEShort, short, Length);
1113 AString Data;
1114 if (!m_ClientBuffer.ReadString(Data, Length))
1115 {
1116 return false;
1117 }
1118 Log("Received a PACKET_PLUGIN_MESSAGE from the client");
1119 Log(" ChannelName = \"%s\"", ChannelName.c_str());
1120 DataLog(Data.data(), Length, " Data: %d bytes", Length);
1121 COPY_TO_SERVER();
1122 return true;
1123}
1124
1125
1126

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.80
ReadStringMethod · 0.45

Tested by

no test coverage detected