mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
Port the globalChat plugin to the new plugin system. Since there's no config system yet the config options for it is removed.
24 lines
557 B
JavaScript
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" },
|
|
},
|
|
}),
|
|
},
|
|
}
|