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修改成功") } } }