Invalid plugin.yml in plugin with NMS

Discussion in 'Plugin Development' started by Goose_Goose_Duck, Jun 19, 2023.

Thread Status:
Not open for further replies.
  1. Hi, im made my first plugin with NMS, but it doesn t work. There is error in console

    [18:58:34] [Server thread/ERROR]: Could not load 'plugins\TESTNMS.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:170) ~[spigot-api-1.19.2-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:144) ~[spigot-api-1.19.2-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.craftbukkit.v1_19_R1.CraftServer.loadPlugins(CraftServer.java:414) ~[spigot-1.19.2-R0.1-SNAPSHOT.jar:3610-Spigot-6198b5a-19df23a]
    at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:224) ~[spigot-1.19.2-R0.1-SNAPSHOT.jar:3610-Spigot-6198b5a-19df23a]
    at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:968) ~[spigot-1.19.2-R0.1-SNAPSHOT.jar:3610-Spigot-6198b5a-19df23a]
    at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:293) ~[spigot-1.19.2-R0.1-SNAPSHOT.jar:3610-Spigot-6198b5a-19df23a]
    at java.lang.Thread.run(Thread.java:833) [?:?]
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
    ... 7 more

    My plugin.yml is normal
    name: TESTNMS
    version: '${version}'
    main: worldofreim.servebeer.com44611.testnms.TESTNMS
    api-version: 1.19
    commands:
    phasm: {}
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Goose_Goose_Duck
    Code:
    Jar does not contain plugin.yml
    Is it in the plugin though?
     
  3. How can i fix it?
     
  4. Offline

    timtower Administrator Administrator Moderator

    @Goose_Goose_Duck Show the content of your jar, check if there is a plugin.yml in there
     
  5. The project has a plugin.yml, but plugin.yml disappears when the project is built
    (opened jar file with winrar)
     
  6. Offline

    timtower Administrator Administrator Moderator

    Where is that plugin.yml then?
     
  7. src/main/resources
     
Thread Status:
Not open for further replies.

Share This Page