fix /startquest parsing the argument in an annoying way
This commit is contained in:
parent
c2ec41c391
commit
7151c0cd9e
@ -245,7 +245,7 @@ String ClientCommandProcessor::startQuest(String const& argumentsString) {
|
||||
if (!adminCommandAllowed())
|
||||
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()));
|
||||
return "Quest started";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user