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

Method HandleTabCompletion

src/ClientHandle.cpp:1518–1529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1516
1517
1518void cClientHandle::HandleTabCompletion(const AString & a_Text)
1519{
1520 AStringVector Results;
1521 m_Player->GetWorld()->TabCompleteUserName(a_Text, Results);
1522 cRoot::Get()->GetPluginManager()->TabCompleteCommand(a_Text, Results, m_Player);
1523 if (Results.empty())
1524 {
1525 return;
1526 }
1527 std::sort(Results.begin(), Results.end());
1528 SendTabCompletionResults(Results);
1529}
1530
1531
1532

Callers 2

ParseTabCompletionMethod · 0.80

Calls 8

sortFunction · 0.85
TabCompleteUserNameMethod · 0.80
TabCompleteCommandMethod · 0.80
GetPluginManagerMethod · 0.80
emptyMethod · 0.80
beginMethod · 0.80
endMethod · 0.80
GetWorldMethod · 0.45

Tested by

no test coverage detected