mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 15:04:52 +09:00
Allow starting plugins with arguments
This commit is contained in:
1 parent
efbc4fbb87
commit
924edc7af7
1 file changed
+2
-1
@@ -318,9 +318,10 @@ function instanceManagement() {
|
||||
let log = function(t) {
|
||||
console.log("Clusterio | "+ pluginDirectories[I] + " | " + t);
|
||||
}
|
||||
let arguments = pluginConfig.arguments || [];
|
||||
|
||||
let pluginConfig = require("./sharedPlugins/" + pluginDirectories[i] + "/config.js");
|
||||
plugins.push(child_process.spawn(pluginConfig.binary, [], {
|
||||
plugins.push(child_process.spawn(pluginConfig.binary, arguments, {
|
||||
cwd: "./sharedPlugins/"+pluginDirectories[i],
|
||||
stdio: ['pipe', 'pipe', 'pipe'],
|
||||
}));
|
||||
|
||||
Reference in new issue
Block a user