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

Method BroadcastScoreboardObjective

src/World.cpp:2023–2035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2021
2022
2023void cWorld::BroadcastScoreboardObjective(const AString & a_Name, const AString & a_DisplayName, Byte a_Mode)
2024{
2025 cCSLock Lock(m_CSPlayers);
2026 for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
2027 {
2028 cClientHandle * ch = (*itr)->GetClientHandle();
2029 if ((ch == NULL) || !ch->IsLoggedIn() || ch->IsDestroyed())
2030 {
2031 continue;
2032 }
2033 ch->SendScoreboardObjective(a_Name, a_DisplayName, a_Mode);
2034 }
2035}
2036
2037
2038

Callers 3

SetDisplayNameMethod · 0.80
RegisterObjectiveMethod · 0.80
RemoveObjectiveMethod · 0.80

Calls 6

beginMethod · 0.80
endMethod · 0.80
GetClientHandleMethod · 0.80
IsLoggedInMethod · 0.80
IsDestroyedMethod · 0.45

Tested by

no test coverage detected