Possibility of having master-only plugins

This commit is contained in:
Danielv123 committed 2018-05-31 21:03:05 +02:00
1 parent e87c702cf2
commit 88e8ab454f
1 file changed
+3 -1
+3 -1
View File
@@ -522,7 +522,7 @@ function instanceManagement() {
} }
} }
console.log("Clusterio | Loaded plugin " + pluginDirectories[i]); console.log("Clusterio | Loaded plugin " + pluginDirectories[i]);
} else if(pluginConfig.binary != "nodePackage"){ } else if(pluginConfig.binary != "nodePackage" && pluginConfig.binary){
// handle as fragile executable plugin // handle as fragile executable plugin
let args = pluginConfig.args || []; let args = pluginConfig.args || [];
plugins[I]=child_process.spawn(pluginConfig.binary, args, { plugins[I]=child_process.spawn(pluginConfig.binary, args, {
@@ -583,6 +583,8 @@ function instanceManagement() {
plugins[i].on('close', (code) => { plugins[i].on('close', (code) => {
log(`child process exited with code ${code}`); log(`child process exited with code ${code}`);
}); });
} else {
// This plugin doesn't have a client portion
} }
} }