From 1385f994139f9b7c5bd4bd09f36ebf08f1524c9e Mon Sep 17 00:00:00 2001 From: TONY_All Date: Fri, 4 Feb 2022 23:48:51 +0800 Subject: [PATCH] last bug... --- .../kotlin/cc/maxmc/invite/command/InviteCodeCommands.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/cc/maxmc/invite/command/InviteCodeCommands.kt b/src/main/kotlin/cc/maxmc/invite/command/InviteCodeCommands.kt index f7b4cc3..b7572d0 100644 --- a/src/main/kotlin/cc/maxmc/invite/command/InviteCodeCommands.kt +++ b/src/main/kotlin/cc/maxmc/invite/command/InviteCodeCommands.kt @@ -141,10 +141,12 @@ object InviteCodeCommands { } execute { sender, ctx, arg -> PluginScope.launch { - InviteCode.find { InviteCodes.name eq ctx.argument(-1) }.first().run { - qq = arg + transaction { + InviteCode.find { InviteCodes.name eq ctx.argument(-1) }.first().run { + qq = arg + } + sender.sendMessage("§a| §7修改成功") } - sender.sendMessage("§a| §7修改成功") } } }