HurricanKai / Blacksmith

Blacksmith Character for Citizens
0 stars 3 forks source link

plugin.yml is missing from JAR file. #16

Open bbayu123 opened 6 years ago

bbayu123 commented 6 years ago

I decided to open a new issue instead of commenting in #10 cuz it was too old, and I'm not sure if #13 is going to be merged or not, so here I am.

plugin.yml is completely missing from the JAR file, checked builds 136, 138 - 140, all of them didn't have the plugin.yml file inside, it absolutely doesn't exist in the JAR file.

[01:07:41] [Server thread/ERROR]: Could not load 'plugins\Blacksmith.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:152) ~[spigot.jar:git-Spigot-642f6d2-fbe3046]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [spigot.jar:git-Spigot-642f6d2-fbe3046]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:305) [spigot.jar:git-Spigot-642f6d2-fbe3046]
    at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:205) [spigot.jar:git-Spigot-642f6d2-fbe3046]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot.jar:git-Spigot-642f6d2-fbe3046]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
    ... 6 more

image

MaxDragonard commented 6 years ago

Same issue. Same error messages. Can't see a plugin.yml in the jar file.

UlrichBR commented 6 years ago

I also get the same error message

mart-r commented 6 years ago

You can just get the plugin.yml from this here repository and add it to the jar. That's what I did.

Not ideal for a production version of a plugin, but a workaround.