From e60ca89b3fcc48b1902766943ba3ff99621dca96 Mon Sep 17 00:00:00 2001 From: Skillet Date: Wed, 15 Feb 2023 07:55:37 -0500 Subject: [PATCH 1/3] Use custom SquadJS for Testing --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 488d554..36ea0c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,7 @@ apt-get update su "${USER}" - <<- __EOC__ ( - git clone --depth 1 --branch "v${squadjs_version}" https://github.com/Team-Silver-Sphere/SquadJS.git "${USER_HOME}/SquadJS" + git clone --depth 1 https://github.com/AsgardEternal/SquadJS.git "${USER_HOME}/SquadJS" cd "${USER_HOME}/SquadJS" || exit 1 yarn install yarn cache clean From 23ebb60035af873d1f2ec7cfbf3fa54ff39d6405 Mon Sep 17 00:00:00 2001 From: Skillet Date: Wed, 15 Feb 2023 08:11:22 -0500 Subject: [PATCH 2/3] Update db-log-addOn.js --- squadjsPlugins/db-log-addOn.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/squadjsPlugins/db-log-addOn.js b/squadjsPlugins/db-log-addOn.js index 3085ab2..177b6d0 100644 --- a/squadjsPlugins/db-log-addOn.js +++ b/squadjsPlugins/db-log-addOn.js @@ -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 }, From c34c0014afcebedc883d3f2d1f8981ccbb3e9f50 Mon Sep 17 00:00:00 2001 From: Skillet Date: Wed, 15 Feb 2023 08:27:19 -0500 Subject: [PATCH 3/3] Update db-log-addOn.js --- squadjsPlugins/db-log-addOn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/squadjsPlugins/db-log-addOn.js b/squadjsPlugins/db-log-addOn.js index 177b6d0..74f7e5d 100644 --- a/squadjsPlugins/db-log-addOn.js +++ b/squadjsPlugins/db-log-addOn.js @@ -111,7 +111,7 @@ export default class DBLogPlayerTime extends DBLog { } async onPlayerConnected(info) { - this.console.log(info); + console.log(info); if(info.player){ await this.models.PlayerTime.create({ server: this.options.overrideServerID || this.server.id, @@ -124,7 +124,7 @@ export default class DBLogPlayerTime extends DBLog { } async onPlayerDisconnected(info) { - this.console.log(info); + console.log(info); if(info.player){ await this.models.PlayerTime.update( { leaveTime: info.time },