Files
factorio-clusterio/plugins/global_chat/info.js
T
Hornwitser b71c392b32 Port globalChat to new plugin system
Port the globalChat plugin to the new plugin system.  Since there's no
config system yet the config options for it is removed.
2019-12-14 17:51:54 +01:00

24 lines
557 B
JavaScript

let link = require("lib/link");
let plugin = require("lib/plugin");
module.exports = {
name: "global_chat",
title: "Global Chat",
description: "Forwards chat between instances.",
version: "2.0.0-alpha",
instanceEntrypoint: "instance",
messages: {
chat: new link.Event({
type: 'global_chat:chat',
links: ['instance-slave', 'slave-master', 'master-slave', 'slave-instance'],
forwardTo: 'master',
broadcastTo: 'instance',
eventProperties: {
"instance_name": { type: "string" },
"content": { type: "string" },
},
}),
},
}