a few errors :(

Discussion in 'Plugin Development' started by 1337, Feb 28, 2011.

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

    1337

    Code:
    19:04:55 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-473-
    gb7e0fc1-b457jnks (MC: 1.3)
    19:04:55 [INFO] Preparing level "map1"
    19:04:55 [INFO] Preparing start region
    19:04:57 [INFO] Preparing spawn area: 81%
    19:04:57 [SEVERE] Could not load plugins\Snowball.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:80)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:129)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:94)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: plugin.x1337x.Snowball.Snowball.<ini
    t>()
            at java.lang.Class.getConstructor0(Unknown Source)
            at java.lang.Class.getConstructor(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:75)
            ... 8 more
    19:04:57 [INFO] Done (0.147s)! For help, type "help" or "?"
    >
    source code = http://dl.dropbox.com/u/8962011/bukkit plugin java files/Snowball.zip7
    also the commands dont seem to work. thanks for the help
     
  2. Offline

    Plague

    Error 404.

    But I think you got plugin.yml wrong, please post it here.
     
  3. Offline

    1337

  4. Offline

    Plague

    Those are just guesses because I donot know the real syntax rules, but I use "name: XXX" not "name : XXX". I also do not like the space in the plugin name, but again maybe that has nothing to do with anything.
    I also write commands like this --
    Code:
    commands:
      name:
        ...
    notice the indentation.
    But this just as well may help nothing :)
     
  5. Offline

    1337

    when i do it like that it gives mean error about mapping valaues are not allowed
     
  6. Offline

    Plague

    what? never seen that... post the new version.
     
  7. Offline

    1337

    the error:
    Code:
    15:55:12 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-473-
    gb7e0fc1-b457jnks (MC: 1.3)
    15:55:12 [INFO] Preparing level "map1"
    15:55:12 [INFO] Preparing start region
    15:55:13 [INFO] Preparing spawn area: 73%
    15:55:14 [SEVERE] null; mapping values are not allowed here (Is it up to date?)
    mapping values are not allowed here
     in "<reader>", line 6, column 11:
         commands :
                  ^
    
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:74
    5)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:307)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
    3)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
    serImpl.java:564)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :228)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:250)
            at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.
    java:29)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:60)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:129)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:94)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    15:55:14 [INFO] Done (0.153s)! For help, type "help" or "?"
    >
    and the new plugin.yml =
    Code:
    name: Snowball fight
    main: plugin.x1337x.Snowball.Snowball
    version: 0.1
    author: (1337)
    description: Snowball fight!!!!
     commands :
      snowball :
       description: shows all the Snowball commands
        usage: /<command>
     
     
  8. Offline

    nickguletskii

    Code:
        usage: /<command>
    I think it complains about the <>s.
     
  9. Offline

    Jonbas

    You're indents are off. Try this:
    Code:
    name: Snowball fight
    main: plugin.x1337x.Snowball.Snowball
    version: 0.1
    author: (1337)
    description: Snowball fight!!!!
    
    commands :
      snowball :
        description: shows all the Snowball commands
        usage: /<command>
     
  10. Offline

    1337

    that fixes the mapping error but still get the error in the op
     
  11. Offline

    Nohup

    you can not have a space between commands and : and snowball and :
     
  12. Offline

    1337

    fixed that but still get the same error as the op
    --- merged: Mar 2, 2011 7:04 PM ---
    bump
    --- merged: Mar 2, 2011 8:38 PM ---
    anyone know?
     
  13. Offline

    Nohup

    where is your plugin.yml within your compiled jar?
     
  14. Offline

    1337

    not in any folders just in the jar
     
Thread Status:
Not open for further replies.

Share This Page