From 6e4688a4c89a4ba964c8662c15f7af3f2c4ffdac Mon Sep 17 00:00:00 2001 From: James Causon Date: Sun, 28 Jun 2015 11:01:09 +0100 Subject: [PATCH] Removed previous addition (onlineplayers) --- README.md | 1 - protocols/core.js | 4 ---- 2 files changed, 5 deletions(-) diff --git a/README.md b/README.md index 2ca8c12..c7eda54 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/protocols/core.js b/protocols/core.js index 2f16071..1ed7d4d 100644 --- a/protocols/core.js +++ b/protocols/core.js @@ -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;