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

Method GetColor

src/Entities/Player.cpp:1390–1403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1388
1389
1390AString cPlayer::GetColor(void) const
1391{
1392 if ( m_Color != '-' )
1393 {
1394 return cChatColor::Color + m_Color;
1395 }
1396
1397 if ( m_Groups.size() < 1 )
1398 {
1399 return cChatColor::White;
1400 }
1401
1402 return (*m_Groups.begin())->GetColor();
1403}
1404
1405
1406

Callers 2

HandleChatMethod · 0.80
SendPlayerListItemMethod · 0.80

Calls 2

sizeMethod · 0.80
beginMethod · 0.80

Tested by

no test coverage detected