Closed LiteCat0905 closed 2 months ago
To clarify, this happens because the ProxyURLClassLoader
does not re-declare the URLClassLoader(String, URL[], ClassLoader) constructor. The String parameter is the name of the ClassLoader and can be ignored. This constructor was introduced in Java 9.
Solving this is very simple, and all you have to do is add the following code:
public ProxyURLClassLoader(final String name, final URL[] urls, final ClassLoader parent) {
super(urls, parent);
}
public ProxyURLClassLoader(final String name, final URL[] urls, final ClassLoader parent, final URLStreamHandlerFactory factory) {
super(urls, parent, factory);
}
运行环境 Java 17 Minecraft版本(1.12.2/1.16.5/1.18.2):1.18.2 构建版本(从/version指令获取): This server is running CatServer version 1.18.2-ecf29bc1 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT, Forge version 40.2.14) 相关模组/插件: LibertyBans (最新版本 V1.1.0) 描述这个BUG 无法加载插件 LibertyBans (如果有报错请附上pastebin链接或上传日志文件)
导致的问题r
复现方法