Plugin Loading Issues

Discussion in 'Plugin Development' started by 1jmw11, Apr 25, 2014.

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

    1jmw11

    I just cant seem to get my plugin to load at all no matter what I do, what am I doing wrong?

    plugin.yml
    Code:
    name: EnderKey
    main: me.jmw.EnderKey.Main
    version: 1
    author: jmw
     
    commands:
        key:
            description: Gives a player a new Ender Key
    Server error log
    Code:
    26.04 04:26:29 [Server] WARN Caused by: while scanning for the next token
    26.04 04:26:29 [Server] WARN ... 22 more
    26.04 04:26:29 [Server] WARN at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:71)
    26.04 04:26:29 [Server] WARN at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:160)
    26.04 04:26:29 [Server] WARN Caused by: org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    26.04 04:26:29 [Server] WARN at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618)
    26.04 04:26:29 [Server] WARN at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:472)
    26.04 04:26:29 [Server] WARN at net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:566)
    26.04 04:26:29 [Server] WARN at net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:273)
    26.04 04:26:29 [Server] WARN at net.minecraft.server.v1_7_R2.MinecraftServer.v(MinecraftServer.java:703)
    26.04 04:26:29 [Server] WARN at net.minecraft.server.v1_7_R2.ServerConnection.c(ServerConnection.java:77)
    26.04 04:26:29 [Server] WARN at net.minecraft.server.v1_7_R2.NetworkManager.a(NetworkManager.java:148)
    26.04 04:26:29 [Server] WARN at net.minecraft.server.v1_7_R2.PacketPlayInChat.handle(PacketPlayInChat.java:65)
    26.04 04:26:29 [Server] WARN at net.minecraft.server.v1_7_R2.PacketPlayInChat.a(PacketPlayInChat.java:28)
    26.04 04:26:29 [Server] WARN at net.minecraft.server.v1_7_R2.PlayerConnection.a(PlayerConnection.java:829)
    26.04 04:26:29 [Server] WARN at net.minecraft.server.v1_7_R2.PlayerConnection.handleCommand(PlayerConnection.java:984)
    26.04 04:26:29 [Server] WARN at org.bukkit.craftbukkit.v1_7_R2.CraftServer.dispatchCommand(CraftServer.java:719)
    26.04 04:26:29 [Server] WARN at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180)
    26.04 04:26:29 [Server] WARN at org.bukkit.command.FormattedCommandAlias.execute(FormattedCommandAlias.java:38)
    26.04 04:26:29 [Server] WARN at org.bukkit.Bukkit.dispatchCommand(Bukkit.java:314)
    26.04 04:26:29 [Server] WARN at org.bukkit.craftbukkit.v1_7_R2.CraftServer.dispatchCommand(CraftServer.java:719)
    26.04 04:26:29 [Server] WARN at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180)
    26.04 04:26:29 [Server] WARN at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    26.04 04:26:29 [Server] WARN at com.rylinaux.plugman.PlugManCommands.onCommand(PlugManCommands.java:54)
    26.04 04:26:29 [Server] WARN at com.rylinaux.plugman.commands.LoadCommand.execute(LoadCommand.java:88)
    26.04 04:26:29 [Server] WARN at com.rylinaux.plugman.utilities.PluginUtil.load(PluginUtil.java:232)
    26.04 04:26:29 [Server] WARN at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329)
    26.04 04:26:29 [Server] WARN at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:73)
    26.04 04:26:29 [Server] WARN org.bukkit.plugin.InvalidPluginException: org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
     
  2. Offline

    Wizehh

    Can you provide a little more context, please?
     
  3. Offline

    moose517

    make sure the main lines up with your project, and that your using spaces and not tabs, possibly try making it version 1.0 versus just 1
     
  4. Offline

    1jmw11

    I'm using spaces and have the correct main...
    I don't know if it maters but we run spigot on the server.
    If I need to I can post the class file.
     
  5. Offline

    xTigerRebornx

    1jmw11 Can you post the full stacktrace? The one you posted has some lines cut out.
    My guess is that your plugin.yml is formatted wrong, try putting it through a YAML Parser
     
  6. Offline

    Relicum

    My guess looking at the stack trace is Plugman plugin has something to do with it. As that is that is starting the error to be thrown. Disable that plugin and then try.
     
  7. Offline

    BillyGalbreath

    The stacktrace says it all. Your plugin.yml is invalid.
     
  8. Offline

    xTigerRebornx

    BillyGalbreath Looking closely, Relicum is right. A plugin.yml is valid, but it isn't the OP's plugin.
     
  9. Offline

    1jmw11

    -.-
    It seems I found it...
    Sneaky empty lines after the last one containing tabs...
     
  10. Offline

    BillyGalbreath

    That'll definitely do it.
     
Thread Status:
Not open for further replies.

Share This Page