在控制台上弹出该错误:
请帮助我们,我现在需要这个!
Error:
[13:36:23] [Server thread/ERROR]: Ambiguous plugin name `'KwadratowyHardcore' for files `plugins\KHH.jar' and `plugins\KH.jar' in `plugins'
[13:36:23] [Server thread/INFO]: Set PluginClassLoader as parallel capable
[13:36:23] [Server thread/ERROR]: Could not load 'plugins\KHH.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: Cannot find main class `me.skyter.hardcore.HardcorePlguin'
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:66) ~[spigot_server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot_server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot_server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot_server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:292) [spigot_server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:198) [spigot_server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [spigot_server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_21]
Caused by: java.lang.ClassNotFoundException: me.skyter.hardcore.HardcorePlguin
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_21]
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_21]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_21]
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.7.0_21]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot_server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot_server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_21]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_21]
at java.lang.Class.forName0(Native Method) ~[?:1.7.0_21]
at java.lang.Class.forName(Unknown Source) ~[?:1.7.0_21]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot_server.jar:git-Spigot-db6de12-18fbb24]
Server it spigot 1.8.9! 我编译了bukkit api 1.7.2,1.8.8和spigot 1.8.9以及craftbukit 1.8.9
答案 0 :(得分:0)
该插件无效。始终使用Caused by:
(Ctrl + F)查找该行。你应该让插件的开发者知道。
答案 1 :(得分:0)
Caused by: java.lang.ClassNotFoundException: me.skyter.hardcore.HardcorePlguin
告诉你,找不到具有此路径的类,因此插件无效/无法运行。
确保路径匹配,并检查plugin.yml是否有错误的路径
答案 2 :(得分:0)
您在plugin.yml
中设置了主要课程答案 3 :(得分:0)
尝试删除KHH.jar
或KH.jar
(较旧的),也许两次使用相同的插件都会导致问题。
Ambiguous plugin name `'KwadratowyHardcore' for files `plugins\KHH.jar' and `plugins\KH.jar' in `plugins'
如果那不能解决错误,请查看此处的其他帖子,然后是plugin.yml
。
答案 4 :(得分:0)
我在这里看到两个问题:
答案 5 :(得分:0)
找不到主类`me.skyter.hardcore.HardcorePlguin'
我建议将其更改为扩展JavaPlugin的Main类所在的位置。我还看到了一个拼写问题,即me.skyter.hardcore.Hardcore Plguin 。那就是你的错误所在。
答案 6 :(得分:0)
您需要确保在 plugin.yml 文件中明确指出您的 Main 类(带有“扩展 JavaPlugin”的类)。
它应该看起来像这样:
main: com.YouWebsite.PackageName.Main
name: ProjectName
version: 1.0
author: YourName
如果您不确定 Main 类的位置,您的插件将无法正常运行。
您可以在错误消息中确定问题所在:
org.bukkit.plugin.InvalidPluginException: Cannot find main class `me.skyter.hardcore.HardcorePlguin'