MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / list

Method list

source/game/StarCommandProcessor.cpp:694–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692}
693
694String CommandProcessor::list(ConnectionId connectionId, String const&) {
695 if (auto errorMsg = adminCheck(connectionId, "list clients"))
696 return *errorMsg;
697
698 StringList res;
699
700 auto assets = Root::singleton().assets();
701 for (auto cid : m_universe->clientIds())
702 res.append(strf("${} : {} : $${}", cid, m_universe->clientNick(cid), m_universe->uuidForClient(cid)->hex()));
703
704 return res.join("\n");
705}
706
707String CommandProcessor::clientCoordinate(ConnectionId connectionId, String const& argumentString) {
708 ConnectionId targetClientId = connectionId;

Callers 7

StarDrawable.cppFile · 0.80
drawablesMethod · 0.80
particleForPlantPartMethod · 0.80
filterProcessingMethod · 0.80
calculateImageSizeMethod · 0.80
renderMethod · 0.80
loadImageMethod · 0.80

Calls 9

singletonClass · 0.85
strfFunction · 0.85
assetsMethod · 0.80
hexMethod · 0.80
clientIdsMethod · 0.45
appendMethod · 0.45
clientNickMethod · 0.45
uuidForClientMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected