diff --git a/squadjsPlugins/db-log-addOn.js b/squadjsPlugins/db-log-addOn.js index a59804b..d5963c6 100644 --- a/squadjsPlugins/db-log-addOn.js +++ b/squadjsPlugins/db-log-addOn.js @@ -175,7 +175,7 @@ export default class DBLogPlayerTime extends DBLog { } async onPlayerDisconnected(info) { - await sleep (500); + await new Promise(r => setTimeout(r, 500)); console.log(info); if(info.player){ await this.models.SteamUser.upsert({