mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
Setup package.json for the plugins and add them back to tests now that they are compatible again.
25 lines
618 B
JavaScript
25 lines
618 B
JavaScript
"use strict";
|
|
let link = require("@clusterio/lib/link");
|
|
let plugin = require("@clusterio/lib/plugin");
|
|
|
|
module.exports = {
|
|
name: "global_chat",
|
|
title: "Global Chat",
|
|
description: "Forwards chat between instances.",
|
|
instanceEntrypoint: "instance",
|
|
controlEntrypoint: "control",
|
|
|
|
messages: {
|
|
chat: new link.Event({
|
|
type: "global_chat:chat",
|
|
links: ["instance-slave", "slave-master", "master-slave", "slave-instance", "control-master"],
|
|
forwardTo: "master",
|
|
broadcastTo: "instance",
|
|
eventProperties: {
|
|
"instance_name": { type: "string" },
|
|
"content": { type: "string" },
|
|
},
|
|
}),
|
|
},
|
|
};
|