mirror of
https://github.com/PHIDIAS0303/ClusterChatSync.git
synced 2025-12-27 03:05:21 +09:00
.
This commit is contained in:
@@ -184,7 +184,7 @@ class ControllerPlugin extends BaseControllerPlugin {
|
|||||||
|
|
||||||
if (result && result.action) {
|
if (result && result.action) {
|
||||||
await this.sendMessage(request, `**\`${nrc_username}\`**: ${result.passage}`);
|
await this.sendMessage(request, `**\`${nrc_username}\`**: ${result.passage}`);
|
||||||
return `[color=255,255,255]\`${nrc_username}\`: ${result}[/color]`;
|
this.controller.sentTo(src, new lib.InstanceRconRequest(`[color=255,255,255]\`${nrc_username}\`: ${result.passage}[/color]`));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
info.js
2
info.js
@@ -2,7 +2,7 @@
|
|||||||
const lib = require('@clusterio/lib');
|
const lib = require('@clusterio/lib');
|
||||||
|
|
||||||
class InstanceActionEvent {
|
class InstanceActionEvent {
|
||||||
static type = 'request';
|
static type = 'event';
|
||||||
static src = 'instance';
|
static src = 'instance';
|
||||||
static dst = 'controller';
|
static dst = 'controller';
|
||||||
static plugin = 'ClusterChatSync';
|
static plugin = 'ClusterChatSync';
|
||||||
|
|||||||
Reference in New Issue
Block a user