This commit is contained in:
2025-08-16 01:31:15 +09:00
parent df0d840312
commit 07fe336a7f
2 changed files with 2 additions and 2 deletions

View File

@@ -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]`));
} }
} }
} }

View File

@@ -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';