Fix psadmin player_list

It's supposed to return a list of names and not the
whole avatar object.
This commit is contained in:
Jakob Gillich 2020-09-27 21:31:05 +02:00
parent 81492da996
commit 2ec28b903f

View file

@ -34,7 +34,7 @@ class CmdListPlayers(args: Array[String], services: Map[String, ActorRef]) exten
} else {
data {
"player_list"
} = players
} = players.map(_.name)
context.parent ! CommandGoodResponse(s"${players.length} players online\n", data)
}
case default => log.error(s"Unexpected message $default")