Solved Plugin.yml problem?

Discussion in 'Plugin Development' started by WTFIRETRUCK7, Feb 23, 2013.

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

    WTFIRETRUCK7

    Hello! I am trying too update my plugin. And it worked before, and nothing has changed except the version. When I start my server, I get this:

    Code:
    2013-02-23 13:43:22 [SEVERE] Could not load 'plugins\LegendaryLightning_1.2.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: us.chasemostat.legendarylightning.LegendaryLightning
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
        at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugins(CraftServer.java:239)
        at org.bukkit.craftbukkit.v1_4_R1.CraftServer.<init>(CraftServer.java:217)
        at net.minecraft.server.v1_4_R1.PlayerList.<init>(PlayerList.java:55)
        at net.minecraft.server.v1_4_R1.DedicatedPlayerList.<init>(SourceFile:11)
        at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:104)
        at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399)
        at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
    Caused by: java.lang.ClassNotFoundException: us.chasemostat.legendarylightning.LegendaryLightning
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
        ... 9 more
    My plugin.yml is:

    name: LegendaryWarp
    main: us.chasemostat.legendarylightning.LegendaryLightning
    version: 1.2
    author: WTFire7
    description: >
    Plugin smiting the **** outta something :D
    commands:
    smite:
    description: Lightning :D
    usage: /<command>
    permission: smite.ll
    permissions:
    smite.ll:
    description: Gives permission to use /smite or /smite <player>!

    Please Help. Thanks!

    and yes, I have parsed it, No errors come up...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  2. Offline

    jorisk322

    Is your main class called 'LegendaryLightning'? Because if it isn't you need to change it so it is, or you need to change that in the plugin.yml. It's case sensitive!
     
  3. Offline

    WTFIRETRUCK7

    Yes my main class is that.

    Fixed the problem, The caps on the Package name was the problem, Thanks!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  4. Offline

    jorisk322

    I think you made a mistake with your package, because I had a look at the last version of the plugin, and the package name was different. Have a good look, and see if it's exactly the same as the package you state in your plugin.yml.

    EDIT: Oh, you already found a solution.
     
Thread Status:
Not open for further replies.

Share This Page