what is wrong with these yaml files?

Discussion in 'Plugin Development' started by tommycake50, Sep 2, 2012.

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

    tommycake50

    well i was testing my plugin to see if it was working and i got a stacktrace or two about the pluin.yml and the config.yml except im launching it from wine on linux so that makes it impossible to read stacktraces

    plugin.yml
    Code:
    name: Enchant4Cash
    main: me.tommycake50.enchant4cash.Enchant4cash
    version: 1.0
    depend: [Vault]
    description >
                A plugin to enchant your items for a set amount of cash
    commands:
        enchant4cash
     
    usage: Usage: /enchant4cash <enchantmentname>
        permission: enchant.use
        permission-message: You do not have permission to enchant items this way sorry.
    and the config.yml(im not 100% sure it was this)
    Code:
    # configuration for the enchant4cash plugin
    # the amount of money to be taken from the player for enchanting
    priceunbreaking:100
    priceefficiency:100
    pricesilktouch:100
    pricefireaspect:100
    pricesmite:100
    priceknockback:100
     
    # level to encant to
    enchantlevel:30
    
    can anyone tell me what im doing wrong?
     
  2. Offline

    makskay

    Your plugin.yml is full of errors, it should look more like this:
    Code:
    name: Enchant4Cash
    main: me.tommycake50.enchant4cash.Enchant4cash
    version: 1.0
    depend: [Vault]
    description: A plugin to enchant your items for a set amount of cash
    commands:
      enchant4cash:
        usage: /<command> <enchantmentname>
        permission: enchant.use
        permission-message: You do not have permission to enchant items this way sorry.
    
    Remember, the level to which any given line in a YAML file is indented matters. More indented lines are seen as "children" of the preceding less indented line.
     
  3. Offline

    tommycake50

    ok i took that into account but now it still doesnt work xD it says its something to do with the line commands: it says cant find ":" or something along those lines.
    but thankyou
    EDIT thanks 100% working now
     
Thread Status:
Not open for further replies.

Share This Page