diff --git a/squadjsPlugins/db-log-addOn.js b/squadjsPlugins/db-log-addOn.js index 2609f57..8fb6d6a 100644 --- a/squadjsPlugins/db-log-addOn.js +++ b/squadjsPlugins/db-log-addOn.js @@ -96,14 +96,14 @@ export default class DBLogPlayerTime extends DBLog { async onUpdatedA2SInformation(info) { await super.onUpdatedA2SInformation(info); - if((this.seeding === true) && (info.a2sPlayerCount >= this.options.seedingThreshold)){ + if((this.seeding == true) && (info.a2sPlayerCount >= this.options.seedingThreshold)){ console.log('switching to Live'); this.seeding = false; await this.models.PlayerTime.update( { seedTime: info.time }, { where: { seedTime: null, joinedSeeding: 1, leaveTime: null, server: this.options.overrideServerID || this.server.id } } ); - }else if(this.seeding === false && (info.a2sPlayerCount-20) < this.options.seedingThreshold){ + }else if(this.seeding == false && (info.a2sPlayerCount-20) < this.options.seedingThreshold){ console.log('switching to seeding'); this.seeding = true; }