mirror of
https://github.com/AsgardEternal/DBLogExtension.git
synced 2024-12-30 16:29:17 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
65335e0bca
commit
e9f824eb95
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user