removed player loop, enabled full playerlist output, and increased maxoutput on playerlist

This commit is contained in:
Nicolas Graf 2018-02-28 03:47:14 +01:00
parent 9c8c6e4f89
commit 284a1fcf40
1 changed files with 2 additions and 5 deletions

View File

@ -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);
});
}