This commit is contained in:
2025-01-17 19:32:03 +09:00
parent 7ab271fb8b
commit 182bccb652
10 changed files with 274 additions and 2 deletions

19
instance.js Normal file
View File

@@ -0,0 +1,19 @@
"use strict";
const lib = require("@clusterio/lib");
const { BaseInstancePlugin } = require("@clusterio/host");
class InstancePlugin extends BaseInstancePlugin {
async init() {
this.messageQueue = [];
}
async onOutput(output) {
if (output.type == "action") {
this.messageQueue.push([output.action, output.message]);
}
}
}
module.exports = {
InstancePlugin
};