jie65535 / gc-opencommand-plugin

A plugin that open the GC command execution interface for third-party clients
GNU Affero General Public License v3.0
375 stars 54 forks source link

Failed to load plugin: opencommand-plugin #15

Closed CM5080 closed 2 years ago

CM5080 commented 2 years ago

12:02:45 正在加载 resources... 12:02:48 完成加载 resources。 12:02:48 GM Handbooks generated! 12:02:48 正在启动 Grasscutter... 12:02:48 游戏版本:2.8.0 12:02:48 Grasscutter 版本:1.2.3-dev-a850d18 12:02:50 Loading plugin: opencommand-plugin 12:02:50 Failed to load plugin: opencommand-plugin java.lang.NoSuchMethodError: 'emu.grasscutter.utils.ConfigContainer emu.grasscutter.Grasscutter.getConfig()' at com.github.jie65535.opencommand.OpenCommandPlugin.startSocket(OpenCommandPlugin.java:108) at com.github.jie65535.opencommand.OpenCommandPlugin.loadConfig(OpenCommandPlugin.java:104) at com.github.jie65535.opencommand.OpenCommandPlugin.onLoad(OpenCommandPlugin.java:48) at emu.grasscutter.plugin.PluginManager.loadPlugin(PluginManager.java:188) at emu.grasscutter.plugin.PluginManager.loadPlugins(PluginManager.java:121) at emu.grasscutter.plugin.PluginManager.(PluginManager.java:29) at emu.grasscutter.Grasscutter.main(Grasscutter.java:131) 12:02:51 [Dispatch] 服务器已在端口 443 上启动 12:02:51 Grasscutter 是免费开源软件,遵循 AGPL-3.0 license。如果你是付费购买的,那你已经被骗了。 项目地址:https://github.com/Grasscutters/Grasscutter 12:02:51 游戏服务器已在端口 22102 上启动

CM5080 commented 2 years ago

1.3.0的插件报错,1.2.4的正常

jie65535 commented 2 years ago

这个问题是已知的,但由于我们无法复现,暂时搁置了,如果你没有多服务器需求,你仍然可以继续使用v1.2.4的版本。

qwesada1233 commented 2 years ago

19:40:56 Enabling plugin: opencommand-plugin 19:40:56 Failed to enable plugin: opencommand-plugin java.lang.AbstractMethodError: Receiver class com.github.jie65535.opencommand.OpenCommandHandler does not define or inherit an implementation of the resolved method 'abstract void applyRoutes(express.Express, io.javalin.Javalin)' of interface emu.grasscutter.server.http.Router. at emu.grasscutter.server.http.HttpServer.addRouter(HttpServer.java:121) at emu.grasscutter.plugin.api.ServerHook.addRouter(ServerHook.java:92) at com.github.jie65535.opencommand.OpenCommandPlugin.onEnable(OpenCommandPlugin.java:73) at emu.grasscutter.plugin.PluginManager.lambda$enablePlugins$2(PluginManager.java:201) at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:721) at emu.grasscutter.plugin.PluginManager.enablePlugins(PluginManager.java:198) at emu.grasscutter.Grasscutter.main(Grasscutter.java:160)

请问这是撒问题

jie65535 commented 2 years ago

你不应该在这个issue内提问,请重新创建一个新的issue,并且附带你使用的opencommand插件版本,与使用的gc服务端版本。