Config.yml Decoration

Discussion in 'Plugin Development' started by xelatercero, Oct 8, 2016.

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

    xelatercero

    How i can add some asterisks to my config.yml do some decorations adn some examples?
     
  2. Offline

    mythbusterma

  3. Offline

    XxTimexX

    @mythbusterma
    I believe that he wanted to do **********(some text here)************
     
  4. @xelatercero
    Do you just mean like a comment? I personally don't think it looks very good..
    Code:text
    1. # ************ HELLO *****************
    2. # * HELLO, THIS IS SOME TEXT AND I *
    3. # * HAVE NO IDEA WHAT TO WRITE *
    4. # ************************************
     
  5. Offline

    xelatercero

    @AlvinB Yes something like that, for me looks well :D
     
  6. @xelatercero Just add them to rhe config and make sure to only do saveDefaultConfig once if the file doesn't exist. Otherwise the comments will all get messed up. If you just want it at the top you can add a header and save that.
     
  7. Offline

    xelatercero

    @AlvinB @bwfcwalshy and another question, how i can do sections, i mean i want to save the location of playes in a section of the config and the permissions in another section of config, thanks for your time i am learning so much thanks to you :p
     
  8. @xelatercero Section as in

    Code:
    Section1:
      A:
        B:
    Section2:
      A:
        B:
    You can do it 2 ways, set A or B wit the path or use createSection for Section1 and 2
     
Thread Status:
Not open for further replies.

Share This Page