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