mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2025-01-04 17:49:30 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
fb0d48f7cd
commit
b91d66f5b8
@ -217,6 +217,7 @@ export default class DBLogPlayerTime extends DBLog {
|
|||||||
|
|
||||||
console.log(info);
|
console.log(info);
|
||||||
const curDateTime = info.time;
|
const curDateTime = info.time;
|
||||||
|
if(info.layer){
|
||||||
if(info.layer.gamemode === 'Seed'){
|
if(info.layer.gamemode === 'Seed'){
|
||||||
console.log('switching to seeding');
|
console.log('switching to seeding');
|
||||||
await this.updateCurrentTimeState(curDateTime, this.seeding, ServerState.seeding);
|
await this.updateCurrentTimeState(curDateTime, this.seeding, ServerState.seeding);
|
||||||
@ -225,6 +226,7 @@ export default class DBLogPlayerTime extends DBLog {
|
|||||||
await this.updateCurrentTimeState(curDateTime, this.seeding, ServerState.live);
|
await this.updateCurrentTimeState(curDateTime, this.seeding, ServerState.live);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async onPlayerConnected(info) {
|
async onPlayerConnected(info) {
|
||||||
console.log(info);
|
console.log(info);
|
||||||
|
Loading…
Reference in New Issue
Block a user