From 9fab18adce6a84cfd7a9f6c772a03ae7a8f2e58d Mon Sep 17 00:00:00 2001 From: Edgars Date: Wed, 24 Nov 2021 00:41:51 +0200 Subject: [PATCH] Added battle Eye config writter --- src/server.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/server.js b/src/server.js index cc638aa..3366d8f 100644 --- a/src/server.js +++ b/src/server.js @@ -80,6 +80,21 @@ Server.prototype.writeServerConfig = function () { fs.writeFileSync(file, config) } +Server.prototype.writeBattleEyeConfig = function (config) { + if(this.options.battleEye) + { + var filePath = path.join(this.options.path, 'battleye/BEServer_x64.cfg') + fs.writeFileSync(filePath, config) + + var filePath2 = path.join(this.options.path, 'battleye/BEServer.cfg') + fs.writeFileSync(filePath2, config) + } +} + +Server.prototype.battleEyeConfigPath = function () { + return path.join(this.options.path, 'battleye') +} + Server.prototype.makeConfigParameter = function () { return '-config=' + path.join(configsDirectory, this.options.config) }