Error: Plugin.yml

Discussion in 'Plugin Development' started by IntelCorporation, Feb 22, 2018.

Thread Status:
Not open for further replies.
  1. I get this error. Please tell me if you need to look at other files to solve.

    Code:
    [21:40:25 ERROR]: Could not load 'plugins\BUILD 5236.jar' in folder 'plug
    ins'
    org.bukkit.plugin.InvalidDescriptionException: commands are of wrong type
            at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile
    .java:946) ~[spigot.jar:git-Spigot-5818108-a486600]
            at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.
    java:232) ~[spigot.jar:git-Spigot-5818108-a486600]
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    inLoader.java:159) ~[spigot.jar:git-Spigot-5818108-a486600]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:133) [spigot.jar:git-Spigot-5818108-a486600]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.ja
    va:291) [spigot.jar:git-Spigot-5818108-a486600]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:74
    4) [spigot.jar:git-Spigot-5818108-a486600]
            at org.bukkit.Bukkit.reload(Bukkit.java:534) [spigot.jar:git-Spigot-5818
    108-a486600]
            at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:
    25) [spigot.jar:git-Spigot-5818108-a486600]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:14
    1) [spigot.jar:git-Spigot-5818108-a486600]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServe
    r.java:646) [spigot.jar:git-Spigot-5818108-a486600]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(Craf
    tServer.java:632) [spigot.jar:git-Spigot-5818108-a486600]
            at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:
    405) [spigot.jar:git-Spigot-5818108-a486600]
            at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:3
    69) [spigot.jar:git-Spigot-5818108-a486600]
            at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:6
    57) [spigot.jar:git-Spigot-5818108-a486600]
            at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java
    :560) [spigot.jar:git-Spigot-5818108-a486600]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
    Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to j
    ava.util.Map
            at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile
    .java:928) ~[spigot.jar:git-Spigot-5818108-a486600]
            ... 15 more
    plugin.yml
    Code:
    name: AddOn
    main: 38483854838548349.g.AddOnPlugin
    version: 1.2
    description: lmao
    commands:
       bc:
          description: lmao
          usage: /<command>
       fetch:
          description: lmao
          usage: /<command>
       speed:
          description: lmao
          usage: /<command>
       fly:
          description: lmao
          usage: /<command>
       fix:
          description: lmao
          usage: /<command>
       rename:
          description: lmao
          usage: /<command>
    
     
    Last edited by a moderator: Feb 22, 2018
  2. Offline

    Nostos

    it seems you don't take the descriptions seriously... this leads me to believe you probably didn't take your
    Code:
    main:
    seriously. you have to use the actual path to your main class (you forgot .Main) if your main class is Main and you current directory is right do this:
    38483854838548349.g.AddOnPlugin.Main
     
  3. @Nostos oh i just renamed that right now because i dont want the name being public. and the Path is
    name.g.AddOnPlugin

    AddOnPlugin is the Main Class.

    forgot to mention that

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Feb 24, 2018
  4. Offline

    Nostos

    @IntelCorporation the only other thing I could think of is this: either something in your code is wrong or you're using tabs for formatting your plugin.yml other than that I have no idea.
     
  5. Offline

    bingothesnake

    I'm pretty sure this is a script error. Place your script in the thread.
     
  6. Offline

    timtower Administrator Administrator Moderator

Thread Status:
Not open for further replies.

Share This Page