Invalid plugin.yml file!

Discussion in 'Plugin Development' started by SpibullMC, Nov 7, 2013.

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

    SpibullMC

    I had been making a plugin called EasyLoginMessage and when I load it there is an error:

    9:54:41 AM [SEVERE] Could not load 'plugins\EasyLoginMessage.jar' in folder 'plugins'
    9:54:41 AM org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    9:54:41 AM at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:257)
    9:54:41 AM at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132)
    9:54:41 AM at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugins(CraftServer.java:241)
    9:54:41 AM at org.bukkit.craftbukkit.v1_6_R3.CraftServer.<init>(CraftServer.java:219)
    9:54:41 AM at net.minecraft.server.v1_6_R3.PlayerList.<init>(PlayerList.java:56)
    9:54:41 AM at net.minecraft.server.v1_6_R3.DedicatedPlayerList.<init>(SourceFile:11)
    9:54:41 AM at net.minecraft.server.v1_6_R3.DedicatedServer.init(DedicatedServer.java:107)
    9:54:41 AM at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:393)
    9:54:41 AM at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
    9:54:41 AM Caused by: mapping values are not allowed here
    9:54:41 AM in "<reader>", line 2, column 5:
    9:54:41 AM name: EasyLoginMessage
    9:54:41 AM ^
    9:54:41 AM at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:733)
    9:54:41 AM at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:305)
    9:54:41 AM at org.yaml.snakeyaml.scanner.ScannerImpl.peekToken(ScannerImpl.java:202)
    9:54:41 AM at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentEnd.produce(ParserImpl.java:265)
    9:54:41 AM at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
    9:54:41 AM at org.yaml.snakeyaml.parser.ParserImpl.getEvent(ParserImpl.java:171)
    9:54:41 AM at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:125)
    9:54:41 AM at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    9:54:41 AM at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
    9:54:41 AM at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    9:54:41 AM at org.yaml.snakeyaml.Yaml.load(Yaml.java:411)
    9:54:41 AM at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:188)
    9:54:41 AM at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:252)
    9:54:41 AM ... 8 more
    A copy of my plugin.yml:
    main:me.spibull.easyloginmessage
    name:EasyLoginMessage
    version:1.0
    author:Spibull
    description:When the player joins a login message will be shown!
    elm:
    description: Show the login message.
    usage: /elm
    Please help me solve this problem since it is my first plugin and I would like to release it soon!
     
  2. Offline

    Milkywayz

  3. Offline

    iiHeroo


    Well, you need to put:
    commands:
    elm:
    description: <description>
    usage: /<command> (You must do <command> not the actual command)
     
  4. main:me.spibull.easyloginmessage
    name:EasyLoginMessage
    version:1.0
    author:Spibull
    description:When the player joins a login message will be sho
    do this



    main: me.spibull.easyloginmessage
    name: EasyLoginMessage
    version: 1.0
    author: Spibull
    description: When the player joins a login message will be sho
     
Thread Status:
Not open for further replies.

Share This Page