From 2e96da20b87cb490be9a3f8e43e7bf49f16a5e32 Mon Sep 17 00:00:00 2001 From: jie65535 Date: Tue, 11 Jan 2022 17:12:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E9=97=AE=E5=8F=B7=E5=8D=A0=E4=BD=8D=E7=AC=A6=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/JHorseRacing.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/JHorseRacing.kt b/src/main/kotlin/JHorseRacing.kt index b1ba974..bce5e48 100644 --- a/src/main/kotlin/JHorseRacing.kt +++ b/src/main/kotlin/JHorseRacing.kt @@ -132,7 +132,12 @@ object JHorseRacing : KotlinPlugin( eventHorse.position -= steps JHRPluginConfig.badEvents[Random.nextInt(JHRPluginConfig.badEvents.size)] } - subject.sendMessage(eventMsg.replace("?", (eventHorseIndex + 1).toString())) + val number = (eventHorseIndex + 1).toString() + subject.sendMessage( + eventMsg + .replace("?", number) + .replace("?", number) + ) // 所有马前进 for ((i, horse) in rank.horses.withIndex()) {