mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-09-28 21:31:29 +02:00
removed player loop, enabled full playerlist output, and increased maxoutput on playerlist
This commit is contained in:
parent
9c8c6e4f89
commit
284a1fcf40
@ -22,7 +22,7 @@ class Nadeo extends require('./core') {
|
|||||||
['Connect'],
|
['Connect'],
|
||||||
['Authenticate', this.options.login,this.options.password],
|
['Authenticate', this.options.login,this.options.password],
|
||||||
['GetStatus'], // 1
|
['GetStatus'], // 1
|
||||||
['GetPlayerList',500,0], // 2
|
['GetPlayerList',10000,0], // 2
|
||||||
['GetServerOptions'], // 3
|
['GetServerOptions'], // 3
|
||||||
['GetCurrentMapInfo'], // 4
|
['GetCurrentMapInfo'], // 4
|
||||||
['GetCurrentGameInfo'], // 5
|
['GetCurrentGameInfo'], // 5
|
||||||
@ -64,14 +64,11 @@ class Nadeo extends require('./core') {
|
|||||||
state.currmap_name = this.stripColors(results[4].Name);
|
state.currmap_name = this.stripColors(results[4].Name);
|
||||||
state.currmap_uid = results[4].UId;
|
state.currmap_uid = results[4].UId;
|
||||||
state.gametype = gamemode;
|
state.gametype = gamemode;
|
||||||
|
state.players = results[2];
|
||||||
state.mapcount = results[5].NbChallenge;
|
state.mapcount = results[5].NbChallenge;
|
||||||
state.nextmap_name = this.stripColors(results[6].Name);
|
state.nextmap_name = this.stripColors(results[6].Name);
|
||||||
state.nextmap_uid = results[6].UId;
|
state.nextmap_uid = results[6].UId;
|
||||||
|
|
||||||
for (const player of results[2]) {
|
|
||||||
state.players.push({name:this.stripColors(player.Name)});
|
|
||||||
}
|
|
||||||
|
|
||||||
this.finish(state);
|
this.finish(state);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user