Bukkit 插件无法加载

Bukkit plugin won't load

我写了一个简单的 bukkit 插件用于测试,当我 运行 服务器出现错误时:

[09:11:47 WARN]: Legacy plugin testPlugin v1 does not specify an api-version.
[09:11:47 ERROR]: Could not load 'plugins/testPlug.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: Cannot find main class `com.testplug.me'
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:73) ~[patched_1.17.1.jar:git-Paper-353]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:153) ~[patched_1.17.1.jar:git-Paper-353]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:414) ~[patched_1.17.1.jar:git-Paper-353]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:322) ~[patched_1.17.1.jar:git-Paper-353]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.loadPlugins(CraftServer.java:419) ~[patched_1.17.1.jar:git-Paper-353]
    at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:287) ~[patched_1.17.1.jar:git-Paper-353]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1217) ~[patched_1.17.1.jar:git-Paper-353]
    at net.minecraft.server.MinecraftServer.lambda$spin[=10=](MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-353]
    at java.lang.Thread.run(Thread.java:831) ~[?:?]
Caused by: java.lang.ClassNotFoundException: com.testplug.me
    at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:151) ~[patched_1.17.1.jar:git-Paper-353]
    at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:103) ~[patched_1.17.1.jar:git-Paper-353]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
    at java.lang.Class.forName0(Native Method) ~[?:?]
    at java.lang.Class.forName(Class.java:466) ~[?:?]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:71) ~[patched_1.17.1.jar:git-Paper-353]
    ... 8 more

This is my files structure 在我的 plugin.yml 中我有 com.testplug.me 作为 main 的值。我的 java 文件的 header 是:

package com.testplug.me;

我调查了不同的来源,但没有找到任何东西。有人可以帮忙吗?

问题已解决。我需要将 com.testplug.me 更改为 com.testplug.me。在我的 plugin.yml 文件中测试。