mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2025-01-04 18:59:29 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
2f3165fc1e
commit
fb0d48f7cd
@ -87,6 +87,7 @@ export default class DBLogPlayerTime extends DBLog {
|
|||||||
|
|
||||||
async mount() {
|
async mount() {
|
||||||
console.log('Mounting db-log');
|
console.log('Mounting db-log');
|
||||||
|
if(this.server.currentLayer){
|
||||||
if(this.server.currentLayer.gamemode === "Seed"){
|
if(this.server.currentLayer.gamemode === "Seed"){
|
||||||
console.log('switching to seeding');
|
console.log('switching to seeding');
|
||||||
this.seeding = ServerState.seeding;
|
this.seeding = ServerState.seeding;
|
||||||
@ -94,6 +95,7 @@ export default class DBLogPlayerTime extends DBLog {
|
|||||||
console.log('switching to Live');
|
console.log('switching to Live');
|
||||||
this.seeding = ServerState.live;
|
this.seeding = ServerState.live;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
await super.mount();
|
await super.mount();
|
||||||
console.log('finished mounting db-log');
|
console.log('finished mounting db-log');
|
||||||
this.server.on('PLAYER_CONNECTED', this.onPlayerConnected);
|
this.server.on('PLAYER_CONNECTED', this.onPlayerConnected);
|
||||||
|
Loading…
Reference in New Issue
Block a user