InvalidDescriptionException invalid plugin.yml

Discussion in 'Plugin Development' started by Caco85, Jul 10, 2014.

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

    Caco85

    Can you help me to correct my plugin.yml? I tried to fix the error but without success.
    Thanks in advance.

    This what i get in the console.
    Code:
    Loading libraries, please wait...
     
    [18:18:51 INFO]: Starting minecraft server version 1.7.9
     
    [18:18:51 INFO]: Loading properties
     
    [18:18:51 INFO]: Default game type: SURVIVAL
     
    [18:18:51 INFO]: Generating keypair
     
    [18:18:51 INFO]: Starting Minecraft server on *:25565
     
    [18:18:51 INFO]: This server is running CraftBukkit version git-Bukkit-1.7.9-R0.
     
    1-10-g8688bd4-b3092jnks (MC: 1.7.9) (Implementing API version 1.7.9-R0.2)
     
    [18:18:51 ERROR]: Could not load 'plugins\Event_plugin.jar' in folder 'plugins'
     
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
     
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
     
    inLoader.java:160) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd
     
    4-b3092jnks]
     
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
     
    .java:133) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jn
     
    ks]
     
            at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugins(CraftServer.ja
     
    va:355) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
     
     
            at org.bukkit.craftbukkit.v1_7_R3.CraftServer.<init>(CraftServer.java:31
     
    7) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at net.minecraft.server.v1_7_R3.PlayerList.<init>(PlayerList.java:68) [c
     
    raftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at net.minecraft.server.v1_7_R3.DedicatedPlayerList.<init>(SourceFile:14
     
    ) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.jav
     
    a:126) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java
     
    :436) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:6
     
    28) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
    Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the n
     
    ext token; found character      '\t' that cannot start any token
     
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
     
    va:358) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks
     
    ]
     
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:17
     
    9) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
     
    serImpl.java:563) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4
     
    -b3092jnks]
     
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) ~
     
    [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
     
    ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
     
    :230) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~
     
    [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
     
    :237) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~
     
    [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
     
    :237) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~
     
    [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
     
    3) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
     
    ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
     
    tructor.java:121) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4
     
    -b3092jnks]
     
            at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) ~[craftbukkit-1
     
    .7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:411) ~[craftbukkit-1.7.9-R0.2.
     
    jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
     
            at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.
     
    java:232) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jn
     
    ks]
     
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
     
    inLoader.java:155) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd
     
    4-b3092jnks]
     
            ... 8 more
     
    [18:18:51 INFO]: Preparing level "world"
     
    [18:18:51 INFO]: Preparing start region for level 0 (Seed: 3232918777767245233)
     
    [18:18:51 INFO]: Preparing start region for level 1 (Seed: 124410475176122876)
     
    [18:18:52 INFO]: Preparing start region for level 2 (Seed: 124410475176122876)
     
    [18:18:52 INFO]: Server permissions file permissions.yml is empty, ignoring it
     
    [18:18:52 INFO]: Done (1,182s)! For help, type "help" or "?"
     
    [18:18:52 INFO]: ----- Bukkit Auto Updater -----
     
    [18:18:52 INFO]: It appears that you're running a Beta Build, when you've specif
     
    ied in bukkit.yml that you prefer to run Recommended Builds.
     
    [18:18:52 INFO]: If you would like to be kept informed about new Beta Build rele
     
    ases, it is recommended that you change 'preferred-channel' in your bukkit.yml t
     
    o 'beta'.
     
    [18:18:52 INFO]: With that set, you will be told whenever a new version is avail
     
    able for download, so that you can always keep up to date and secure with the la
     
    test fixes.
     
    [18:18:52 INFO]: If you would like to disable this warning, simply set 'suggest-
     
    channels' to false in bukkit.yml.
     
    [18:18:52 INFO]: ----- ------------------- -----
     
    >

    This is my plugin.yml
    Code:
    name: eventplugin
    main: it.caco.minecraftplugin.eventplugin.EventCountdown
    version: 1
    commands:
      createevent:
          usage: /<command>
          description: Create new event ( name, duration, countdown )
          permission: eventplugin.createevent      permission-message: You don't have <permission>
      startevent:
          usage: /startevent
          description: Start saved event( name )
          permission: eventplugin.startevent     
          permission-message: You don't have <permission>
      event:
          usage: /event
          description: Partecipate to the event
          permission: eventplugin.event
          permission-message: You don't have <permission>
     
  2. Caco85 You're permission-message was in the wrong place:
    Code:
    name: eventplugin
    main: it.caco.minecraftplugin.eventplugin.EventCountdown
    version: 1
    commands:
      createevent:
        usage: /<command>
        description: Create new event (name, duration, countdown)
        permission: eventplugin.createevent     
        permission-message: You don't have <permission>
      startevent:
        usage: /startevent
        description: Start saved event( name )
        permission: eventplugin.startevent   
        permission-message: You don't have <permission>
      event:
        usage: /event
        description: Partecipate to the event
        permission: eventplugin.event
        permission-message: You don't have <permission>
     
  3. Offline

    Caco85

    i changed the file in:
    Code:
    name: eventplugin
    main: it.caco.minecraftplugin.eventplugin.EventCountdown
    version: 1
    commands:
      createevent:
        usage: /<command>
        description: Create new event ( name, duration, countdown )
        permission: eventplugin.createevent     
        permission-message: You don't have <permission>
      startevent:
        usage: /startevent
        description: Start saved event( name )
        permission: eventplugin.startevent     
        permission-message: You don't have <permission>
      event:
        usage: /event
        description: Partecipate to the event
        permission: eventplugin.event
        permission-message: You don't have <permission>
         
    permissions:
      eventplugin.*:
        description: Gives access to all Inferno commands
        children:
          eventplugin.createevent: true
          eventplugin.startevent: true
          eventplugin.event: true
      eventplugin.createevent:
        description: Allows you to create events
        default: false
      eventplugin.startevent
        description: Allows you to start a created event
        default: false
      eventplugin.event
        description: Allows you to partecipate to the current event
        default: true
    I get the same error!
    Please help me!
     
Thread Status:
Not open for further replies.

Share This Page