diff --git a/package.json b/package.json index 45a21b4..4cd359b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "SquadJS", - "version": "1.0.3", + "version": "1.0.4", "repository": "https://github.com/Thomas-Smyth/SquadJS.git", "author": "Thomas Smyth ", "license": "MIT", diff --git a/plugins/discord-server-status/index.js b/plugins/discord-server-status/index.js index 8b1f27f..7757b44 100644 --- a/plugins/discord-server-status/index.js +++ b/plugins/discord-server-status/index.js @@ -49,6 +49,7 @@ export default async function plugin(server, discordClient, options = {}) { options = { color: 16761867, command: '!server', + disableStatus: false, ...options }; @@ -81,6 +82,6 @@ export default async function plugin(server, discordClient, options = {}) { }); server.on(SERVER_A2S_UPDATED, () => { - discordClient.user.setActivity(`(${server.a2sPlayerCount}/${server.publicSlots}) ${server.currentLayer}`, { type: 'WATCHING' }); + if(!options.disableStatus) discordClient.user.setActivity(`(${server.a2sPlayerCount}/${server.publicSlots}) ${server.currentLayer}`, { type: 'WATCHING' }); }); }