console loader

This commit is contained in:
jiahua.liu 2020-02-22 20:41:12 +08:00
parent b30246cda1
commit 5847ac855c
2 changed files with 15 additions and 11 deletions

View File

@ -0,0 +1,15 @@
package net.mamoe.mirai.console
import kotlin.concurrent.thread
class MiraiConsolePureLoader {
companion object {
@JvmStatic
fun main(args: Array<String>) {
MiraiConsole.start(MiraiConsoleUIPure())
Runtime.getRuntime().addShutdownHook(thread(start = false) {
MiraiConsole.stop()
})
}
}
}

View File

@ -80,14 +80,3 @@ class MiraiConsoleUIPure : MiraiConsoleUI {
}
class MiraiConsolePureLoader {
companion object {
@JvmStatic
fun main(args: Array<String>) {
MiraiConsole.start(MiraiConsoleUIPure())
Runtime.getRuntime().addShutdownHook(thread(start = false) {
MiraiConsole.stop()
})
}
}
}