1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Help with Core plugin

Discussion in 'Development' started by Defications2po, Jun 8, 2017.

  1. Defications2po

    Defications2po Witch

    Messages:
    51
    so i was attemting to remake a skyblock core that hybridpe uses but then when i finished it i had some minor errors that i fixed but this one caught me off guard. Sorry if it is pretty obvious what the answer is i have been coding all night so.
    I know it is about my plugin.yml but i cant seem to fix it.
    heres my code
    PHP:
    nameSKYBLOCKCORE
    author
    DEFICATIONS
    main
    Core\Main
    api
    : [2.0.03.0.0-ALPHA13.0.0-ALPHA23.0.0-ALPHA33.0.0-ALPHA43.0.0-ALPHA53.0.03.0.0-ALPHA6]
    commands:
      
    lottery:
        
    descriptionIts a lottey for kits an permission notes
    permissions
    :
      
    b.lottery:
        
    descriptionAllows players to use /lottery!
         
    children:
    here is the error
    Code:
     Could not load 'C:\Users\Ben\Desktop\PocketMine-MP\plugins\SkyblockCore' in folder 'C:\Users\Ben\Desktop\PocketMine-MP\plugins\': yaml_parse(): scanning error encountered during parsing: mapping values are not allowed in this context (line 11, column 14)
    [09:10:34] [Server thread/CRITICAL]: ErrorException: "yaml_parse(): scanning error encountered during parsing: mapping values are not allowed in this context (line 11, column 14)" (EXCEPTION) in "/src/pocketmine/plugin/PluginDescription" at line 51
    
     
  2. Defications2po

    Defications2po Witch

    Messages:
    51
  3. Lowkey

    Lowkey Slime

    Messages:
    94
    I'm getting a plugin.yml error too whilst trying to compile a phar @ DevTools...
     
  4. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    children: is empty? That might be your issue.
     
  5. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    Make sure to keep a space between every colon and value :)
     
    SOFe likes this.
  6. Lowkey

    Lowkey Slime

    Messages:
    94
    There is sanderrr...
     
  7. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    The problem is in that you have an extra space in front of the `children` line. It should be aligned with the `description` property.

    That's why I don't like YAML. Use JSON if you hate seeing these errors all the time. If you put JSON code in a YAML file, it will still be parsed correctly because JSON is a superset of YAML ;) In some cases, a hybrid of JSON in YAML also works.
     
    Lowkey, corytortoise and Sandertv like this.
  8. Lowkey

    Lowkey Slime

    Messages:
    94
    WORKED. THANKYOU SOF3
     
    Sandertv likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.