mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2025-01-02 09:49:19 -06:00
Change Threshold logic for Seeding
This commit is contained in:
parent
28ceb0d2bc
commit
067ffc766d
@ -105,8 +105,9 @@ export default class DBLogPlayerTime extends DBLog {
|
|||||||
{ where: { seedTime: null, joinedSeeding: 1, leaveTime: null, server: this.options.overrideServerID || this.server.id } }
|
{ where: { seedTime: null, joinedSeeding: 1, leaveTime: null, server: this.options.overrideServerID || this.server.id } }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.seeding = info.a2sPlayerCount >= this.options.seedingThreshold ? false : true;
|
if(seeding === true && info.a2sPlayerCount >= this.options.seedingThreshold) this.seeding = false;
|
||||||
|
else if(seeding === false && info.a2sPlayerCount-20 < this.options.seedingThreshold) this.seeding = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
async onPlayerConnected(info) {
|
async onPlayerConnected(info) {
|
||||||
|
Loading…
Reference in New Issue
Block a user