From 87cc024c302a04eff47f3ed30711be1e36a0bc68 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sat, 1 Apr 2023 14:50:39 -0700 Subject: [PATCH] wait for playerlist --- structures/DayzArmbands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/structures/DayzArmbands.js b/structures/DayzArmbands.js index 8f030a4..4ec2102 100644 --- a/structures/DayzArmbands.js +++ b/structures/DayzArmbands.js @@ -552,8 +552,8 @@ class DayzArmbands extends Client { this.activePlayersTick++; await this.downloadFile(`/games/${this.config.Nitrado.UserID}/noftp/dayzxb/config/DayZServer_X1_x64.ADM`, './logs/server-logs.ADM').then(async () => { - await this.readLogs(this.config.GuildID).then(() => { - if (this.activePlayersTick == 12) this.handleActivePlayersList(this.config.GuildID); + await this.readLogs(this.config.GuildID).then(async () => { + if (this.activePlayersTick == 12) await this.handleActivePlayersList(this.config.GuildID); }) }); this.logsUpdateTimer(); // restart this function