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

Method completeQuest

source/frontend/StarClientCommandProcessor.cpp:252–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252String ClientCommandProcessor::completeQuest(String const& argumentsString) {
253 auto arguments = m_parser.tokenizeToStringList(argumentsString);
254 if (!adminCommandAllowed())
255 return "You must be an admin to use this command.";
256
257 m_universeClient->questManager()->getQuest(arguments.at(0))->complete();
258 return strf("Quest {} complete", arguments.at(0));
259}
260
261String ClientCommandProcessor::failQuest(String const& argumentsString) {
262 auto arguments = m_parser.tokenizeToStringList(argumentsString);

Callers

nothing calls this directly

Calls 6

strfFunction · 0.85
tokenizeToStringListMethod · 0.80
completeMethod · 0.80
getQuestMethod · 0.80
questManagerMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected