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

Method SendPlayerListItem

src/Protocol/Protocol17x.cpp:727–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725
726
727void cProtocol172::SendPlayerListItem(const cPlayer & a_Player, bool a_IsOnline)
728{
729 cPacketizer Pkt(*this, 0x38); // Playerlist Item packet
730 Pkt.WriteString(a_Player.GetName());
731 Pkt.WriteBool(a_IsOnline);
732 Pkt.WriteShort(a_IsOnline ? a_Player.GetClientHandle()->GetPing() : 0);
733}
734
735
736

Callers

nothing calls this directly

Calls 6

GetPingMethod · 0.80
GetClientHandleMethod · 0.80
WriteStringMethod · 0.45
GetNameMethod · 0.45
WriteBoolMethod · 0.45
WriteShortMethod · 0.45

Tested by

no test coverage detected