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

Method GetGroup

src/GroupManager.cpp:198–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197
198cGroup* cGroupManager::GetGroup( const AString & a_Name )
199{
200 GroupMap::iterator itr = m_pState->Groups.find( a_Name );
201 if( itr != m_pState->Groups.end() )
202 {
203 return itr->second;
204 }
205
206 cGroup* Group = new cGroup();
207 m_pState->Groups[a_Name] = Group;
208
209 return Group;
210}
211
212
213

Callers 1

AddToGroupMethod · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected