This commit is contained in:
2024-10-19 10:06:07 +08:00
parent 10a61fbee7
commit 492f36d6a5
2 files changed
+90 -16

No files matched your search

@@ -613,6 +613,10 @@ class MCBotCommand : BaseCommand() {
val action = args.first()
when (action) {
"start" -> {
if (userClientMap.containsKey(message.sender.userId)) {
message.reply("你有一个正在进行的任务不能开启另外一个任务请先使用`/mcbot cancel`取消任务")
return
}
val address = args[1]
val host = address.split(":").first()
val port = address.split(":").last().toInt()