mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
Added onlineplayers
Added onlineplayers which utilizes the length of the players array to make it always available. Possible to add bots to this count but i think just players would be best. Updated readme to include this change.
This commit is contained in:
parent
9c785bcda0
commit
4d31e29e70
2 changed files with 13 additions and 8 deletions
|
|
@ -54,6 +54,7 @@ Otherwise, the returned object is guaranteed to contain the following keys:
|
|||
* **name**
|
||||
* **map**
|
||||
* **password**: Boolean
|
||||
* **onlineplayers**
|
||||
* **maxplayers**
|
||||
* **players**: (array of objects) Each object **may** contain name, ping, score, team, address
|
||||
* **bots**: Same schema as players
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue