From 284a1fcf401d66e91a946e5db49b09189bc37bd9 Mon Sep 17 00:00:00 2001 From: Nicolas Graf Date: Wed, 28 Feb 2018 03:47:14 +0100 Subject: [PATCH] removed player loop, enabled full playerlist output, and increased maxoutput on playerlist --- protocols/nadeo.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/protocols/nadeo.js b/protocols/nadeo.js index a23a2e6..49a123e 100644 --- a/protocols/nadeo.js +++ b/protocols/nadeo.js @@ -22,7 +22,7 @@ class Nadeo extends require('./core') { ['Connect'], ['Authenticate', this.options.login,this.options.password], ['GetStatus'], // 1 - ['GetPlayerList',500,0], // 2 + ['GetPlayerList',10000,0], // 2 ['GetServerOptions'], // 3 ['GetCurrentMapInfo'], // 4 ['GetCurrentGameInfo'], // 5 @@ -64,14 +64,11 @@ class Nadeo extends require('./core') { state.currmap_name = this.stripColors(results[4].Name); state.currmap_uid = results[4].UId; state.gametype = gamemode; + state.players = results[2]; state.mapcount = results[5].NbChallenge; state.nextmap_name = this.stripColors(results[6].Name); state.nextmap_uid = results[6].UId; - for (const player of results[2]) { - state.players.push({name:this.stripColors(player.Name)}); - } - this.finish(state); }); }