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

Method AddToGroup

src/Entities/Player.cpp:1224–1231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1222
1223
1224void cPlayer::AddToGroup( const AString & a_GroupName )
1225{
1226 cGroup* Group = cRoot::Get()->GetGroupManager()->GetGroup( a_GroupName );
1227 m_Groups.push_back( Group );
1228 LOGD("Added %s to group %s", m_PlayerName.c_str(), a_GroupName.c_str() );
1229 ResolveGroups();
1230 ResolvePermissions();
1231}
1232
1233
1234

Callers

nothing calls this directly

Calls 3

GetGroupMethod · 0.80
GetGroupManagerMethod · 0.80
c_strMethod · 0.80

Tested by

no test coverage detected