From e9f824eb9567208cbd0a6f3257347dfd7722fe73 Mon Sep 17 00:00:00 2001 From: Skillet Date: Mon, 8 May 2023 17:02:33 -0400 Subject: [PATCH] Update db-log-addOn.js --- db-log-addOn.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db-log-addOn.js b/db-log-addOn.js index 3e2f14a..7daa924 100644 --- a/db-log-addOn.js +++ b/db-log-addOn.js @@ -285,11 +285,12 @@ export default class DBLogPlayerTime extends DBLog { return; } - const adminfile = await open(lcladminpath, 'rw'); + const adminfile = await open(lcladminpath, 'r+'); await adminfile.write(`Group=server-${this.server.options.id}-autowl:reserve\n`); for(const seeding of seedid){ await adminfile.write(`Admin=${seeding.steamID}:server-${this.server.options.id}-autowl //name:${seeding.playername}, discord ID: ${seeding.discordID}\n`); } + await adminfile.close(); } async onNewGame(info) {