Custom plugin

Discussion in 'Plugin Development' started by willsdamon898, Jul 24, 2013.

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

    willsdamon898

    I just started to learn how to make plugins and work with bukkit. Everything was ok until I was told to set up the plugin.yml in my tutorial that I was watching. In the video I was watching he named the file plugin.yml and when he finished it automatically sent him to a blank yml page. Then once I uploaded the plugin to my bukkit server and there was a huge error in the console that said:

    20:12:36 [SEVERE] Could not load 'plugins/class.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:257)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132)
    at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins(CraftServer.java:239)
    at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:217)
    at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56)
    at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11)
    at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:106)
    at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391)
    at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
    Caused by: while scanning for the next token
    found character'\t' that cannot start any token
    in "<reader>", line 5, column 1:
    My first test plugin that ...
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:358)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:563)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:411)
    at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:188)
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:252)
    ... 8 more

    Could someone please help, it would be greatly appreciated. I think it has to do something with the plugin.yml.
     
  2. Offline

    Taketheword

    We need the plugin.yml code.
     
  3. Offline

    Necrodoom

    moved to plugin development.

    willsdamon898
    You cant use tabs in a plugin.yml. Other wise care to post what you have in it so I can see?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Aug 6, 2019
    xTrollxDudex likes this.
  4. Offline

    JPG2000

  5. Offline

    willsdamon898

    xTrollxDudex
    this is the format of my plugin.yml

    name: class_
    main: me.Will.class_.class_
    version: 1.0
    description: >
    My first test plugin
    commands:
    class:

    description: defines all the classes
     
  6. Offline

    xTrollxDudex

    willsdamon898
    Can you put this in pastebin, pastie or in syntax? It looks like there's some spacing issues with your plugin.yml plain pasted.
    Syntax is like this
    PHP:
    [syntax=java]your code here
    The next line here
    Another line
    [/syntax]
     
Thread Status:
Not open for further replies.

Share This Page