From f09d640736cd56f8da383d0148c7b2eab7927979 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sat, 28 Oct 2023 09:26:07 -0700 Subject: [PATCH] refactor/update src --- src/DayzRBot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DayzRBot.js b/src/DayzRBot.js index f9730fc..64918f2 100644 --- a/src/DayzRBot.js +++ b/src/DayzRBot.js @@ -214,7 +214,7 @@ class DayzRBot extends Client { lastDetectedTime = await this.getDateEST(info.time); let playerStat = await this.dbo.collection("players").findOne({"playerID": info.playerID}); - if (!this.exits(playerStat)) playerStat = getDefaultPlayer(info.player, info.playerID); + if (!this.exits(playerStat)) playerStat = getDefaultPlayer(info.player, info.playerID, this.config.Nitrado.ServerID); if (!previouslyConnected.includes(playerStat) && this.exists(playerStat.lastDisconnectionDate) && playerStat.lastDisconnectionDate !== null && playerStat.lastDisconnectionDate.getTime() > lastDetectedTime.getTime()) continue; // Skip this player if the lastDisconnectionDate time is later than the player log entry.