From 31edc04390226ea29a4176c2804db8917aad0dac Mon Sep 17 00:00:00 2001 From: Thomas Smyth Date: Mon, 5 Oct 2020 19:01:43 +0100 Subject: [PATCH] Fix plugin enabled option --- squad-server/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/squad-server/index.js b/squad-server/index.js index b659da8..2f014de 100644 --- a/squad-server/index.js +++ b/squad-server/index.js @@ -300,6 +300,8 @@ export default class SquadServer extends EventEmitter { console.log('Preparing connectors...'); const connectors = {}; for (const pluginConfig of config.plugins) { + if (!pluginConfig.enabled) continue; + const Plugin = plugins[pluginConfig.plugin]; for (const [optionName, option] of Object.entries(Plugin.optionsSpecification)) {