mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2024-12-30 14:09:18 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
562dac86cd
commit
23ebb60035
@ -111,6 +111,7 @@ export default class DBLogPlayerTime extends DBLog {
|
||||
}
|
||||
|
||||
async onPlayerConnected(info) {
|
||||
this.console.log(info);
|
||||
if(info.player){
|
||||
await this.models.PlayerTime.create({
|
||||
server: this.options.overrideServerID || this.server.id,
|
||||
@ -123,6 +124,7 @@ export default class DBLogPlayerTime extends DBLog {
|
||||
}
|
||||
|
||||
async onPlayerDisconnected(info) {
|
||||
this.console.log(info);
|
||||
if(info.player){
|
||||
await this.models.PlayerTime.update(
|
||||
{ leaveTime: info.time },
|
||||
|
Loading…
Reference in New Issue
Block a user