From 06f34aa21bb089be80d2f188f3637495cdb9a565 Mon Sep 17 00:00:00 2001 From: Eliya G Date: Wed, 25 Jan 2023 06:32:18 +1100 Subject: [PATCH] Switch to new convar --- app/Controllers/Effects.js | 2 +- app/Controllers/Preferences.js | 2 +- app/Controllers/Rcon.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Controllers/Effects.js b/app/Controllers/Effects.js index 3786ba8..f2b4d10 100644 --- a/app/Controllers/Effects.js +++ b/app/Controllers/Effects.js @@ -86,7 +86,7 @@ const GetServerData = async () => { if(Preferences.preferences.value('connection.autoEnableConvar') && !_this.VotingEnabled){ try{ - Rcon.RconServer.execute("sm_cvar sm_chaos_twitch_enabled 1"); + Rcon.RconServer.execute("sm_cvar sm_chaos_voting_enabled 1"); }catch(e){ console.log(e); } diff --git a/app/Controllers/Preferences.js b/app/Controllers/Preferences.js index 5605756..167e2d0 100644 --- a/app/Controllers/Preferences.js +++ b/app/Controllers/Preferences.js @@ -72,7 +72,7 @@ _this.preferences = new ElectronPreferences({ { label: "Yes", value: true }, { label: "No", value: false }, ], - help: "Auto-enable 'sm_chaos_twitch_enabled' ConVar when connected to the server to enable voting.", + help: "Auto-enable 'sm_chaos_voting_enabled' ConVar when connected to the server to enable voting.", }, ], }, diff --git a/app/Controllers/Rcon.js b/app/Controllers/Rcon.js index 46f0323..9e30acd 100644 --- a/app/Controllers/Rcon.js +++ b/app/Controllers/Rcon.js @@ -153,7 +153,7 @@ ipcMain.handle("Rcon_IsRconConnected", async (event, data) => { ipcMain.handle("Rcon_EnableVoting", async (event, data) => { try{ - await _this.RconServer.execute("sm_cvar sm_chaos_twitch_enabled 1"); + await _this.RconServer.execute("sm_cvar sm_chaos_voting_enabled 1"); }catch(e){ console.log(e); }