plugins'org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml

Discussion in 'Plugin Development' started by Matthiaantje, Oct 18, 2016.

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

    Matthiaantje

    So I'm having this problem lately...
    The plugin won't load cause there's an InvalidDescriptionException and I have no idea how to fix this kinda error...

    Code:
    [16:23:08 ERROR]: Could not load 'plugins/MAC.jar' in folder 'plugins'org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml   at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:154) ~[server.jar:git-Spigot-550ebac-7019900]   at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [server.jar:git-Spigot-550ebac-7019900]   at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:291) [server.jar:git-Spigot-550ebac-7019900]   at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [server.jar:git-Spigot-550ebac-7019900]   at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [server.jar:git-Spigot-550ebac-7019900]   at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml   ... 6 more>
    
    [16:23:08 ERROR]: Could not load 'plugins/BungeeTabListPlus_SpongeBridge-2.5.4.jar' in folder 'plugins'org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml   at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:154) ~[server.jar:git-Spigot-550ebac-7019900]   at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [server.jar:git-Spigot-550ebac-7019900]   at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:291) [server.jar:git-Spigot-550ebac-7019900]   at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [server.jar:git-Spigot-550ebac-7019900]   at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [server.jar:git-Spigot-550ebac-7019900]   at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml   ... 6 more
    
    [16:23:08 INFO]: Set PluginClassLoader as parallel capable>
    
    [16:23:08 ERROR]: Could not load 'plugins/Vanity0.1.jar' in folder 'plugins'org.bukkit.plugin.InvalidPluginException: Cannot find main class `dev.cosmetics.Main'   at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:66) ~[server.jar:git-Spigot-550ebac-7019900]   at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[server.jar:git-Spigot-550ebac-7019900]   at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[server.jar:git-Spigot-550ebac-7019900]   at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [server.jar:git-Spigot-550ebac-7019900]   at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:291) [server.jar:git-Spigot-550ebac-7019900]   at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [server.jar:git-Spigot-550ebac-7019900]   at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [server.jar:git-Spigot-550ebac-7019900]   at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]Caused by: java.lang.ClassNotFoundException: dev.cosmetics.Main   at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_101]   at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[server.jar:git-Spigot-550ebac-7019900]   at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[server.jar:git-Spigot-550ebac-7019900]   at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101]   at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101]   at java.lang.Class.forName0(Native Method) ~[?:1.8.0_101]   at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_101]   at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[server.jar:git-Spigot-550ebac-7019900]   ... 7 more>
    
    [16:23:08 ERROR]: Could not load 'plugins/PlayerManager.jar' in folder 'plugins'org.bukkit.plugin.InvalidPluginException: Cannot find main class `matthiaantje.set.PlayerManager'   at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:66) ~[server.jar:git-Spigot-550ebac-7019900]   at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[server.jar:git-Spigot-550ebac-7019900]   at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[server.jar:git-Spigot-550ebac-7019900]   at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [server.jar:git-Spigot-550ebac-7019900]   at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:291) [server.jar:git-Spigot-550ebac-7019900]   at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [server.jar:git-Spigot-550ebac-7019900]   at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [server.jar:git-Spigot-550ebac-7019900]   at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]Caused by: java.lang.ClassNotFoundException: matthiaantje.set.PlayerManager   at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_101]   at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[server.jar:git-Spigot-550ebac-7019900]   at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[server.jar:git-Spigot-550ebac-7019900]   at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101]   at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101]   at java.lang.Class.forName0(Native Method) ~[?:1.8.0_101]   at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_101]   at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[server.jar:git-Spigot-550ebac-7019900]   ... 7 more>
    
    this is my plugin.yml...
    Code:
    main: com.matthiaantje.mac.MAC
    name: MAC
    author: Matthiaantje
    load: STARTUP
    prefix: MangoAntiCheat
    loadbefore: [Essentials]
    commands: mac: description: MAC help command
    usage: /mac
    macon: description: enable
    usage: /macon
    macoff: description: disable MAC
    usage: /macoff
    macplayers: description: list
    usage: /macplayers
    
    Thanks in advance!
    Matthiaantje
     
  2. Offline

    AlvinB

    @Matthiaantje
    The obvious problem is that the "commands: mac: description: MAC help command" line has multiple things on the same line. Put them on different lines. If the error isn't fixed, please post the plugin.yml using pastebin.com as [code][/code] tags are broken atm.
     
  3. Offline

    Zombie_Striker

    @Matthiaantje @AlvinB
    Not only is that the problem, but there is no formatting. All commands need to have two spaces, and all usages need to have four.
     
Thread Status:
Not open for further replies.

Share This Page