Solved Random Error?

Discussion in 'Bukkit Help' started by blok601, Oct 13, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    blok601

    So, I am helping a friend out with this plugin. But, whenever he exports/uses his plugin he gets this error. The code and plugin.yml work fine on my computer so I don't know what the problem is.

    Code:
    [20:51:10] [Server thread/INFO]: Starting minecraft server version 1.8.8
    [20:51:11] [Server thread/INFO]: Loading properties
    [20:51:11] [Server thread/INFO]: Default game type: SURVIVAL
    [20:51:11] [Server thread/INFO]: Generating keypair
    [20:51:11] [Server thread/INFO]: Starting Minecraft server on *:25565
    [20:51:11] [Server thread/INFO]: Using default channel type
    [20:51:12] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-9a17f01 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
    [20:51:12] [Server thread/ERROR]: Could not load 'plugins\Test.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:152) ~[craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:289) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.<init>(CraftServer.java:251) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at net.minecraft.server.v1_8_R3.PlayerList.<init>(PlayerList.java:69) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at net.minecraft.server.v1_8_R3.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:179) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:503) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
    ... 9 more
    [20:51:12] [Server thread/INFO]: Preparing level "world"
    [20:51:12] [Server thread/INFO]: Preparing start region for level 0 (Seed: 4468991414901038135)
    [20:51:13] [Server thread/INFO]: Preparing spawn area: 21%
    [20:51:14] [Server thread/INFO]: Preparing spawn area: 57%
    [20:51:15] [Server thread/INFO]: Preparing start region for level 1 (Seed: 4468991414901038135)
    [20:51:16] [Server thread/INFO]: Preparing spawn area: 41%
    [20:51:17] [Server thread/INFO]: Preparing spawn area: 75%
    [20:51:17] [Server thread/INFO]: Preparing start region for level 2 (Seed: 4468991414901038135)
    [20:51:18] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
    [20:51:18] [Server thread/INFO]: Done (6.338s)! For help, type "help" or "?"
    [20:52:36] [Server thread/INFO]: CONSOLE: [0;31;1mPlease note that this command is not supported and may cause issues when using some plugins.[m
    [20:52:36] [Server thread/INFO]: CONSOLE: [0;31;1mIf you encounter any issues please use the /stop command to restart your server.[m
    [20:52:36] [Server thread/ERROR]: Could not load 'plugins\Test.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:152) ~[craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:289) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:718) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at org.bukkit.Bukkit.reload(Bukkit.java:544) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:620) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:606) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:372) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:336) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:628) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:536) [craftbukkit-1.8.8.jar:git-Bukkit-9a17f01]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
    ... 14 more
    [20:52:36] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
    [20:52:36] [Server thread/INFO]: CONSOLE: [0;32;1mReload complete.[m
     
  2. Offline

    Halmerson

    Are you using IntelliJ? Or Eclipse? In the error, it says the plugin.yml is not in the .JAR. The reason I asked if you are using IntelliJ or Eclipse, is because, I recently switched to IntelliJ, and it's a bit more tricky than Eclipse. You must make sure the .JAR, contains the plugin.yml
    I literally had this problem yesterday, and fixed it.
    @blok601
     
    Last edited: Oct 13, 2015
  3. Offline

    scrollbar

    @blok601 It is most likely that the plugin.yml file isn't setup properly to be included in the JAR file. If you're using maven you need to make sure you specifically list that the resources files need to be included. Otherwise you can add it yourself using 7zip or set it up in your IDE to add it to the jar file.
     
  4. Offline

    blok601

    Fixed it. I don't know what we need xD. Thanks anyway though.
     
Thread Status:
Not open for further replies.

Share This Page