DreamVoid / MiraiMC

适用于Minecraft服务器的Mirai机器人
https://docs.miraimc.dreamvoid.me
GNU Affero General Public License v3.0
182 stars 15 forks source link

Waterfall无法加载插件 #432

Closed ZeroJoKCN closed 1 year ago

ZeroJoKCN commented 1 year ago

问题描述

将插件放入Waterfall后无法正常加载

复现方法

  1. 将MiraiMC放入Waterfall
  2. 启动服务器

服务端类型

BungeeCord

服务端版本

Waterfall-Bootstrap:1.20-R0.1-SNAPSHOT:ec41547:536

MiraiMC 插件版本

MiraiMC version dev-234

服务端日志

[15:22:10] [main/WARN]: Exception encountered when loading plugin: MiraiMC
java.lang.NoClassDefFoundError: net/mamoe/mirai/event/events/SignEvent
    at me.dreamvoid.miraimc.bungee.MiraiEvent.startListenEvent(MiraiEvent.java:177) ~[?:?]
    at me.dreamvoid.miraimc.MiraiMCPlugin.postLoad(MiraiMCPlugin.java:98) ~[?:?]
    at me.dreamvoid.miraimc.bungee.BungeePlugin.onEnable(BungeePlugin.java:51) ~[?:?]
    at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:316) ~[waterfall.jar:git:Waterfall-Bootstrap:1.20-R0.1-SNAPSHOT:ec41547:536]
    at net.md_5.bungee.BungeeCord.start(BungeeCord.java:299) ~[waterfall.jar:git:Waterfall-Bootstrap:1.20-R0.1-SNAPSHOT:ec41547:536]
    at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:67) ~[waterfall.jar:git:Waterfall-Bootstrap:1.20-R0.1-SNAPSHOT:ec41547:536]
    at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15) ~[waterfall.jar:git:Waterfall-Bootstrap:1.20-R0.1-SNAPSHOT:ec41547:536]
Caused by: java.lang.ClassNotFoundException: net.mamoe.mirai.event.events.SignEvent
    at net.md_5.bungee.api.plugin.PluginClassloader.loadClass0(PluginClassloader.java:103) ~[waterfall.jar:git:Waterfall-Bootstrap:1.20-R0.1-SNAPSHOT:ec41547:536]
    at net.md_5.bungee.api.plugin.PluginClassloader.loadClass(PluginClassloader.java:59) ~[waterfall.jar:git:Waterfall-Bootstrap:1.20-R0.1-SNAPSHOT:ec41547:536]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
    ... 7 more

额外说明

启动参数:java -jar waterfall.jar 系统:Windows Server 2022

协议

DreamVoid commented 1 year ago

警告一次,再次滥用issue功能将会被加入黑名单。