mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-18 09:35:50 +00:00
feat: add requestPlayers option (#624)
* feat: add option * docs: alter readme
This commit is contained in:
parent
0fe87c52eb
commit
e74ae933b3
5 changed files with 11 additions and 3 deletions
|
|
@ -163,6 +163,10 @@ export default class valve extends Core {
|
|||
async queryPlayers (/** Results */ state) {
|
||||
state.raw.players = []
|
||||
|
||||
if (!this.options.requestPlayers) {
|
||||
return
|
||||
}
|
||||
|
||||
this.logger.debug('Requesting player list ...')
|
||||
const b = await this.sendPacket(
|
||||
this.goldsrcInfo ? undefined : 0x55,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue