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

Method ForEachCommand

src/Bindings/PluginManager.cpp:1628–1638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1626
1627
1628bool cPluginManager::ForEachCommand(cCommandEnumCallback & a_Callback)
1629{
1630 for (CommandMap::iterator itr = m_Commands.begin(), end = m_Commands.end(); itr != end; ++itr)
1631 {
1632 if (a_Callback.Command(itr->first, itr->second.m_Plugin, itr->second.m_Permission, itr->second.m_HelpString))
1633 {
1634 return false;
1635 }
1636 } // for itr - m_Commands[]
1637 return true;
1638}
1639
1640
1641

Callers 1

Calls 3

beginMethod · 0.80
endMethod · 0.80
CommandMethod · 0.45

Tested by

no test coverage detected