mirror of
https://github.com/AsgardEternal/DBLogExtension.git
synced 2025-01-02 15:39:31 -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;
|
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`);
|
await adminfile.write(`Group=server-${this.server.options.id}-autowl:reserve\n`);
|
||||||
for(const seeding of seedid){
|
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.write(`Admin=${seeding.steamID}:server-${this.server.options.id}-autowl //name:${seeding.playername}, discord ID: ${seeding.discordID}\n`);
|
||||||
}
|
}
|
||||||
|
await adminfile.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
async onNewGame(info) {
|
async onNewGame(info) {
|
||||||
|
Loading…
Reference in New Issue
Block a user