未解决 运行后代码一堆红
-
2022-03-26 12:17:13 W/mirai-hibernate-plugin: 未安装 mirai-slf4j-bridge.
2022-03-26 12:17:14 E/dada.douDiZhu: java.lang.UnsupportedOperationException: Only allowed CLI or Direct Permit
java.lang.UnsupportedOperationException: Only allowed CLI or Direct Permit
at LuckPerms-Mirai-2.10.0-dev-6+null-all.jar//io.github.karlatemp.luckperms.mirai.internal.LPPermissionService.permit(LPPermissionService.kt:365)
at LuckPerms-Mirai-2.10.0-dev-6+null-all.jar//io.github.karlatemp.luckperms.mirai.internal.LPPermissionService.permit(LPPermissionService.kt:119)
at net.mamoe.mirai.console.permission.PermissionService$Companion.permit0(PermissionService.kt:195)
at douDiZhu-1.1.2.jar//dada.douDiZhu.DouDiZhu.onEnable(DouDiZhu.kt:31)
at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:117)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:258)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:35)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:50)
at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:173)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:181)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:224)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:444)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:159)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:158)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.itxtech.mcl.Utility.bootMirai(Utility.java:83)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:226)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1692)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1013)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:412)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3578)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107)
at org.mozilla.javascript.ArrowFunction.call(ArrowFunction.java:43)
at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.java:155)
at org.mozilla.javascript.InterfaceAdapter.lambda$invoke$0(InterfaceAdapter.java:105)
at org.mozilla.javascript.Context.call(Context.java:554)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:522)
at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdapter.java:105)
at org.mozilla.javascript.jdk18.VMBridge_jdk18$1.invoke(VMBridge_jdk18.java:126)
at jdk.proxy1/jdk.proxy1.$Proxy4.run(Unknown Source)
at org.itxtech.mcl.script.ScriptManager.phaseBoot(ScriptManager.java:106)
at org.itxtech.mcl.Loader.lambda$start$3(Loader.java:176)
at org.itxtech.mcl.Loader.tryCatching(Loader.java:145)
at org.itxtech.mcl.Loader.start(Loader.java:176)
at org.itxtech.mcl.Loader.main(Loader.java:68)
我尝试安装mirai-slf4j-bridge这个结果找不到这个 -
-
我也是这个问题
我从lib包里面查看
发现sl4fj没有成功下载,然后我去仓库搜索,并没有对应的版本,估计等下次版本更新就会解决 -
2022-03-26 12:17:13 W/mirai-hibernate-plugin
2022-03-26 12:17:14 E/dada.douDiZhuW/mirai-hibernate-plugin
和E/dada.douDiZhu
这里是俩个不同的错误,和 mirai-slf4j-bridge 没关系
-
你也有斗地主啊?我这里有个斗地主的我自己改动过的版本运行起来我好想没看见报错
-
@cssxsh 上面那个插件我没装 所以我并没有见到那个报错,下面的插件我装了,但是没有遇见这个报错(好像)
-
@Moyuyanli
2022-03-26 12:17:13 W/mirai-hibernate-plugin: 未安装 mirai-slf4j-bridge.
只是一个警告(W。 Warning),不安装不影响使用 -
@cssxsh 确实,我依然将我的机器人挂了几天了