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
a4c4fa20c1
commit
be853d1746
@ -6,6 +6,8 @@ import path from "path";
|
|||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import { open } from "node:fs/promises"
|
import { open } from "node:fs/promises"
|
||||||
|
|
||||||
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||||
|
|
||||||
const { DataTypes } = Sequelize;
|
const { DataTypes } = Sequelize;
|
||||||
const ServerState = {
|
const ServerState = {
|
||||||
init: 0,
|
init: 0,
|
||||||
@ -275,7 +277,7 @@ export default class DBLogPlayerTime extends DBLog {
|
|||||||
if(((this.options.incseed*seeder.seedTime) - (this.options.decseed*(topTime-seeder.seedTime))) > 100) seedid.push(seeder);
|
if(((this.options.incseed*seeder.seedTime) - (this.options.decseed*(topTime-seeder.seedTime))) > 100) seedid.push(seeder);
|
||||||
}
|
}
|
||||||
|
|
||||||
const lcladminpath = path.resolve("../../../", this.options.whitelistfilepath);
|
const lcladminpath = path.resolve(__dirname, "../../../", this.options.whitelistfilepath);
|
||||||
this.verbose(1, "trying to write to directory: ", lcladminpath);
|
this.verbose(1, "trying to write to directory: ", lcladminpath);
|
||||||
if(!fs.existsSync(lcladminpath)) {
|
if(!fs.existsSync(lcladminpath)) {
|
||||||
this.verbose(1, "WARNING: auto whitelist admins file not found");
|
this.verbose(1, "WARNING: auto whitelist admins file not found");
|
||||||
|
Loading…
Reference in New Issue
Block a user