Custom plugin

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

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


    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.SimplePluginManager.loadPlugins(
    at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins(
    at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(
    at net.minecraft.server.v1_6_R2.PlayerList.<init>(
    at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11)
    at net.minecraft.server.v1_6_R2.DedicatedServer.init(
    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(
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(
    at org.yaml.snakeyaml.composer.Composer.composeNode(
    at org.yaml.snakeyaml.composer.Composer.composeDocument(
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(
    at org.yaml.snakeyaml.Yaml.loadFromReader(
    at org.yaml.snakeyaml.Yaml.load(
    at org.bukkit.plugin.PluginDescriptionFile.<init>(
    ... 8 more

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


    We need the plugin.yml code.
  3. Offline


    moved to plugin development.

    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


  5. Offline


    this is the format of my plugin.yml

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

    description: defines all the classes
  6. Offline


    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
    [syntax=java]your code here
    The next line here
    Another line
Thread Status:
Not open for further replies.

Share This Page