很抱歉,本次发送的字数超过上限,已取消发送!
字数:15772
什么鬼 输入mcping出现的
Z
zhenjing666 发布的帖子
-
RE: Overflow —— 将 mirai 实现换成 Onebot,机器人的又一个解决方案
@MrXiaoM 我刚刚测试了下 出现这个报错
2024-03-10 12:45:56 V/Bot.3073680600: XXXXX(XXXXX) -> mcping mc.hypixel.net 2024-03-10 12:45:56 W/Bot.3073680600: An exception occurred when processing event. Subscriber scope: '<unnamed>'. Broadcaster scope: 'Bot.3073680600.EventDispatcher'. Onebot implementation: 'Shamrock v1.0.9.r360.92ebe0c' java.lang.NullPointerException: Cannot invoke "net.mamoe.mirai.Bot.getFriends()" because the return value of "com.ycitus.mcping.MinecraftPing.getCurrentBot()" is null at MinecraftPing-1.4.mirai.jar//com.ycitus.mcping.framework.MessageManager.sendMessageBySituation(MessageManager.java:68) at MinecraftPing-1.4.mirai.jar//com.ycitus.mcping.command.RobotCommand.runCheckUp(RobotCommand.java:71) at MinecraftPing-1.4.mirai.jar//com.ycitus.mcping.command.RobotCommandManager.receiveMessage(RobotCommandManager.java:69) at MinecraftPing-1.4.mirai.jar//com.ycitus.mcping.MinecraftPing.lambda$onEnable$1(MinecraftPing.java:83) at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:605) at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:605) at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:51) at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1) at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:43) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
-
RE: Overflow —— 将 mirai 实现换成 Onebot,机器人的又一个解决方案
@MrXiaoM 同名?但是我还是只找到了https://mirai.mamoe.net/post/2559
-
RE: Overflow —— 将 mirai 实现换成 Onebot,机器人的又一个解决方案
@MrXiaoM MCPING确实太老了,作者Github项目是只读状态。不过我貌似找不到可以顶替的插件了,只想着说降低版本来适应它
-
RE: Overflow —— 将 mirai 实现换成 Onebot,机器人的又一个解决方案
话说可以用于 mirai 的2.14.0的版本吗?
我部分插件不支持 2.16.0 版本的