mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-04-29 16:25:30 +00:00
Fix psadmin player_list
It's supposed to return a list of names and not the whole avatar object.
This commit is contained in:
parent
81492da996
commit
2ec28b903f
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ class CmdListPlayers(args: Array[String], services: Map[String, ActorRef]) exten
|
||||||
} else {
|
} else {
|
||||||
data {
|
data {
|
||||||
"player_list"
|
"player_list"
|
||||||
} = players
|
} = players.map(_.name)
|
||||||
context.parent ! CommandGoodResponse(s"${players.length} players online\n", data)
|
context.parent ! CommandGoodResponse(s"${players.length} players online\n", data)
|
||||||
}
|
}
|
||||||
case default => log.error(s"Unexpected message $default")
|
case default => log.error(s"Unexpected message $default")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue