From 3b223191da270c11be65f8e03d4bd76c76eb5f7a Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 19 Oct 2026 01:09:14 +0900 Subject: [PATCH] 1.0.7 RC1 --- instance.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instance.ts b/instance.ts index ea190d1..9fd3bbe 100644 --- a/instance.ts +++ b/instance.ts @@ -85,7 +85,7 @@ export default async function(context: InstancePluginContext) { const message_index = message.indexOf(' '); const message_username = message_index === -1 ? message : message.slice(0, message_index); const message_content = message_index === -1 ? '' : message.slice(message_index + 1).trim(); - const player_count = instance.playersOnline.size + (action === 'JOIN' ? 0 : -1); + const player_count = instance.playersOnline.size + (action === 'LEAVE' ? -1 : 0); queue.push({datetime: dt, message: `**\`${message_username}\`** ${message_content} (${player_count})`}); }