mirror of
https://github.com/jie65535/mirai-console-jhr-plugin.git
synced 2025-06-02 17:39:16 +08:00
修复 比赛进行中还能下注的问题
This commit is contained in:
parent
2e96da20b8
commit
9236f3bd21
@ -193,6 +193,8 @@ object JHorseRacing : KotlinPlugin(
|
||||
}
|
||||
}
|
||||
msg.startsWith("押马") -> {
|
||||
// 如果比赛进行中则不允许下注
|
||||
if (ranks[subject.id] != null) return@subscribeAlways
|
||||
val pool = pools[subject.id] ?: return@subscribeAlways
|
||||
if (pool.any { it.id == sender.id }) {
|
||||
subject.sendMessage("你已经下过注辣")
|
||||
|
Loading…
Reference in New Issue
Block a user