diff --git a/plugins/inventory_sync/control.js b/plugins/inventory_sync/control.js deleted file mode 100644 index 680e79af..00000000 --- a/plugins/inventory_sync/control.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -const libPlugin = require("@clusterio/lib/plugin"); -const info = require("./info"); -const libCommand = require("@clusterio/lib/command"); - - -const globalChatCommands = new libCommand.CommandTree({ - name: "global-chat", description: "Global Chat plugin commands", -}); -globalChatCommands.add(new libCommand.Command({ - definition: ["shout ", "Send message to all instances", (yargs) => { - yargs.positional("message", { describe: "message to send", type: "string" }); - }], - handler: async function(args, control) { - await info.messages.chat.send(control, { - instance_name: "Console", - content: args.message, - }); - }, -})); - -class ControlPlugin extends libPlugin.BaseControlPlugin { - async addCommands(rootCommand) { - rootCommand.add(globalChatCommands); - } -} - -module.exports = { - ControlPlugin, -};