diff --git a/README.md b/README.md
index d92ad971..108b494f 100644
--- a/README.md
+++ b/README.md
@@ -38,6 +38,8 @@ SquadJS relies on being able to access the Squad server log directory in order t
3. Configure the `config.json` file. See below for more details.
4. Start SquadJS: `node index.js`.
+**Note** - We use Yarn Workspaces so `npm install` will not work and will break stuff!
+
## **Configuring SquadJS**
diff --git a/package.json b/package.json
index b1834593..71e1a023 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "SquadJS",
- "version": "2.0.2",
+ "version": "2.0.3",
"repository": "https://github.com/Thomas-Smyth/SquadJS.git",
"author": "Thomas Smyth ",
"license": "BSL-1.0",
diff --git a/squad-server/index.js b/squad-server/index.js
index 886c15e9..c9278139 100644
--- a/squad-server/index.js
+++ b/squad-server/index.js
@@ -438,7 +438,7 @@ export default class SquadServer extends EventEmitter {
queryPort: this.options.queryPort,
name: this.serverName,
- playerCount: this.players.length
+ playerCount: this.a2sPlayerCount + this.publicQueue + this.reserveQueue
},
// Send information about SquadJS.
@@ -470,7 +470,7 @@ export default class SquadServer extends EventEmitter {
`Successfully pinged the SquadJS API. Got back message: ${data.message}`
);
} catch (err) {
- Logger.verbose('SquadServer', 1, 'Failed to ping the SquadJS API: ', err);
+ Logger.verbose('SquadServer', 1, 'Failed to ping the SquadJS API: ', err.message);
}
this.pingSquadJSAPITimeout = setTimeout(this.pingSquadJSAPI, this.pingSquadJSAPIInterval);
diff --git a/squad-server/layers/layer.js b/squad-server/layers/layer.js
index 5ddc713c..47c032fe 100644
--- a/squad-server/layers/layer.js
+++ b/squad-server/layers/layer.js
@@ -1,7 +1,7 @@
export default class Layer {
constructor(data) {
this.name = data.Name;
- this.classname = data.rawName;
+ this.classname = data.levelName;
this.map = {
name: data.mapName
};
diff --git a/squad-server/layers/layers.js b/squad-server/layers/layers.js
index d4c76f47..f01c5e2f 100644
--- a/squad-server/layers/layers.js
+++ b/squad-server/layers/layers.js
@@ -22,7 +22,7 @@ class Layers {
Logger.verbose('Layers', 1, 'Pulling layers...');
const response = await axios.get(
- 'https://raw.githubusercontent.com/Squad-Wiki-Editorial/squad-wiki-pipeline-map-data/dev/completed_output/2.0/finished_2.0.json'
+ 'https://raw.githubusercontent.com/Squad-Wiki-Editorial/squad-wiki-pipeline-map-data/dev/completed_output/_Current%20Version/finished.json'
);
for (const layer of response.data.Maps) {
diff --git a/squad-server/plugins/discord-server-status.js b/squad-server/plugins/discord-server-status.js
index 6763727c..cb4d360b 100644
--- a/squad-server/plugins/discord-server-status.js
+++ b/squad-server/plugins/discord-server-status.js
@@ -69,7 +69,7 @@ export default class DiscordServerStatus extends BasePlugin {
await this.options.discordClient.user.setActivity(
`(${this.server.a2sPlayerCount}/${this.server.publicSlots}) ${
- this.server.layerHistory[0].layer.name || 'Unknown'
+ this.server.currentLayer.name || 'Unknown'
}`,
{ type: 'WATCHING' }
);
diff --git a/squad-server/templates/readme-template.md b/squad-server/templates/readme-template.md
index d80afe2b..c7b80512 100644
--- a/squad-server/templates/readme-template.md
+++ b/squad-server/templates/readme-template.md
@@ -38,6 +38,8 @@ SquadJS relies on being able to access the Squad server log directory in order t
3. Configure the `config.json` file. See below for more details.
4. Start SquadJS: `node index.js`.
+**Note** - We use Yarn Workspaces so `npm install` will not work and will break stuff!
+
## **Configuring SquadJS**