diff --git a/src/lib/playerPlugins/login.js b/src/lib/playerPlugins/login.js index 36cf9a0..9384225 100644 --- a/src/lib/playerPlugins/login.js +++ b/src/lib/playerPlugins/login.js @@ -165,18 +165,17 @@ function inject(serv,player) }] }); - serv.players.map((otherPlayer) => { - player._client.write('player_info', { - action: 0, - data: [{ - UUID: otherPlayer._client.uuid, - name: otherPlayer.username, - properties: [], - gamemode: otherPlayer.gameMode, - ping: 1 - }] - }); + player._client.write('player_info', { + action: 0, + data: serv.players.map((otherPlayer) => ({ + UUID: otherPlayer._client.uuid, + name: otherPlayer.username, + properties: [], + gamemode: otherPlayer.gameMode, + ping: 1 + })) }); + }