fix /startquest parsing the argument in an annoying way

This commit is contained in:
Kae 2024-11-05 15:42:21 +11:00
parent c2ec41c391
commit 7151c0cd9e

View File

@ -245,7 +245,7 @@ String ClientCommandProcessor::startQuest(String const& argumentsString) {
if (!adminCommandAllowed()) if (!adminCommandAllowed())
return "You must be an admin to use this command."; return "You must be an admin to use this command.";
auto questArc = QuestArcDescriptor::fromJson(Json::parse(arguments.at(0))); auto questArc = QuestArcDescriptor::fromJson(Json::parseSequence(arguments.at(0)).get(0));
m_universeClient->questManager()->offer(make_shared<Quest>(questArc, 0, m_universeClient->mainPlayer().get())); m_universeClient->questManager()->offer(make_shared<Quest>(questArc, 0, m_universeClient->mainPlayer().get()));
return "Quest started"; return "Quest started";
} }