Help me please

Discussion in 'Spigot Plugin Development' started by Kenax, May 30, 2016.

  1. Hello,

    I'm trying to make my first plugin by tutorials on youtube, and I created everything, and plugin won't load up, I google it and all I know is that something in plugin.yml, and please help me what do I need to do in that plugin


    [19:33:27 ERROR]: Could not load 'plugins\Test.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    inLoader.java:160) ~[Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks
    ]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:133) [Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugins(CraftServer.ja
    va:364) [Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.reload(CraftServer.java:83
    7) [Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.bukkit.Bukkit.reload(Bukkit.java:303) [Craftbukkit.jar:git-Bukkit
    -1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:
    23) [Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:18
    0) [Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServe
    r.java:740) [Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchServerCommand(Craf
    tServer.java:726) [Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at net.minecraft.server.v1_7_R4.DedicatedServer.aB(DedicatedServer.java:
    294) [Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:2
    59) [Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:5
    58) [Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java
    :469) [Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:6
    28) [Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    Caused by: org.yaml.snakeyaml.scanner.ScannerException: null; mapping values are
    not allowed here
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:73
    3) ~[Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:305) ~[Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:17
    9) ~[Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
    serImpl.java:563) ~[Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]

    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) ~
    [Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    ~[Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230) ~[Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~
    [Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    3) ~[Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    ~[Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:121) ~[Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]

    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) ~[Craftbukkit.j
    ar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:411) ~[Craftbukkit.jar:git-Buk
    kit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.
    java:232) ~[Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks]
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    inLoader.java:155) ~[Craftbukkit.jar:git-Bukkit-1.7.9-R0.2-20-g0b2ed13-b3108jnks
    ]
    ... 13 more
    [19:33:27 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [19:33:27 INFO]: CONSOLE: Reload complete.
    >pl
    [19:33:28 INFO]: Plugins (0):
    >
     
    #1 Kenax, May 30, 2016
    Last edited: Aug 2, 2016
  2. Post your plugin.yml, as you know it's the plugin.yml.

    When you see it's about a resource/file, provide that resource/file and/or mark the specific line where the error occurs.
     
  3. name: Test
    version: 1.0
    main: me.kenax.test.Test
    author: Kenax
    description: Test plugin!


    commands:
    test:
    usage: /<command>
    description: Test command
     
  4. Code (Text):
    name: PLUGIN
    version: 1.0
    author: TU
    main: org.plugin.Main

    commands:
        COMANDO:
            usage: /COMANDO
     
     
  5. First, please use the insert code button when posting logs or code.

    Your plugin.yml file is incorrect in some way, whether it's invalid or in the wrong directory.

    You can learn more here
    http://wiki.bukkit.org/Plugin_YAML

    I use IntelliJ, and the plugin.yml file has to be in the src directory to work.
     
  6. Post them in the following:
    [.code=YAML] for Yet Another Markup Language.
    [.code=Java] for Java
    [.code=CPP] for C++
    [.code=XML] for Extensive Markup Language

    Close with [/code]
    (No dots ofc)
     
  7. Perhaps not these by placing the plugin.yml in the default package
     
  8. Add me on skype if you know how to help.. skype name: kenaxlove
     
  9. Or you can give us the information we need to help troubleshoot the issue, then if someone haves the same issue in the future they can look at this thread.
     
  10. So what now I need to give ?
     

  11. It would say it couldn't find it then.

    Keep it on spigotmc.org.


    Your plugin.yml surrounded with code tags.

    How?
    Enter (without the space between [ and c): [ code=YAML]*copy+pasta the plugin.yml/yaml here*[/code]
     
  12. Code (Text):
    name: Test
    version: 1.0
    main: me.kenax.test.Test
    author: Kenax
    description: Test plugin!


    commands:
          test:
              usage: /<command>
              description: Test command!
     
  13. Thank you.
    Yeah, that works.

    It's kinda clear.
    test has 6 beforehand spaces.
    Use 2 or 4.

    Code (YAML):
    name: Test
    version
    : 1.0
    main
    : me.kenax.test.Test
    author
    : Kenax
    description
    : Test plugin!


    commands
    :
        test
    :
            usage
    : /<command>
            description
    : Test command!
     
  14. It's working ! Thank you!