wait for playerlist

This commit is contained in:
SowinskiBraeden committed 2023-04-01 14:50:39 -07:00
1 parent 3987ab7c88
commit 87cc024c30
1 file changed
+2 -2
+2 -2
View File
@@ -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