Removed previous addition (onlineplayers)

This commit is contained in:
James Causon 2015-06-28 11:01:09 +01:00
parent 0b55b8ceb4
commit 6e4688a4c8
2 changed files with 0 additions and 5 deletions

View file

@ -54,7 +54,6 @@ 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

View file

@ -42,7 +42,6 @@ module.exports = Class.extend(EventEmitter,{
raw: {},
onlineplayers: 0,
maxplayers: 0,
players: [],
bots: []
@ -62,9 +61,6 @@ module.exports = Class.extend(EventEmitter,{
if(this.options.notes)
state.notes = this.options.notes;
//Additional Conditionals
if('players' in state) state.onlineplayers = state.players.length;
state.query = {};
if('host' in this.options) state.query.host = this.options.host;
if('address' in this.options) state.query.address = this.options.address;