fix/disableBaseDamage settings preference
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dayzr-bot",
|
||||
"version": "10.0.1",
|
||||
"version": "10.0.2",
|
||||
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
||||
"main": "index.js",
|
||||
"nodemonConfig": {
|
||||
|
||||
+1
-1
@@ -219,7 +219,7 @@ module.exports = {
|
||||
const settings = await module.exports.FetchServerSettings(client, 'ToggleBaseDamage'); // Fetch server settings
|
||||
if (!settings || settings == 1) return 1;
|
||||
|
||||
const posted = await PostServerSettings(client, "config", "disableBaseDamage", preference);
|
||||
const posted = await PostServerSettings(client, "config", "disableBaseDamage", preference ? 1 : 0);
|
||||
if (!posted || posted == 1) return 1;
|
||||
|
||||
const remoteDir = '/games/ni8434545_1/ftproot/dayzxb_missions/dayzOffline.chernarusplus';
|
||||
|
||||
Reference in new issue
Block a user