编写spigot插件完毕后加载失败

当我编写完spigot插件后运行时 失败
运行报错结果如下

org.bukkit.plugin.InvalidPluginException: Cannot find main class `joinedtip.Joinedtip'
at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:66) ~[PaperSpigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-PaperSpigot-5be55c3-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[PaperSpigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-PaperSpigot-5be55c3-18fbb24]


回答:

plugin.yml上的main要对应到你写的继承JavaPlugin的类上才行检查一下joinedtip.Joinedtip这个是否写错了

以上是 编写spigot插件完毕后加载失败 的全部内容, 来源链接: utcz.com/p/944340.html

回到顶部