mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 23:53:13 +09:00
Add js templates and config templates
This commit is contained in:
23 files changed
+543
-50
No files matched your search
@@ -13,7 +13,8 @@ pluginCommands.add(new Command({
|
||||
yargs.positional("foo", { describe: "foo is foo!", type: "string" });
|
||||
}],
|
||||
handler: async function(args: { foo: string }, control: Control) {
|
||||
await control.sendTo("controller", new PluginExampleEvent(args.foo, [1, 2, 3]));
|
||||
const response = await control.sendTo("controller", new PluginExampleRequest(args.foo, [1, 2, 3]));
|
||||
console.log(response);
|
||||
console.log(args);
|
||||
},
|
||||
}));
|
||||
|
||||
Reference in new issue
Block a user