YAML Config

Discussion in 'Plugin Development' started by 7rmb7, Jun 27, 2011.

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

    7rmb7

    First of all, let me just say that I suck at YAML.


    That said, I have an idea for n awesome plugin. Long story short, I want the YAML config file to have different game modes. Within those modes, I want users to be able to add a list of preset configurations. How would I go about doing this?

    Thanks,
    -7

    Would it have something to do with this?
    http://en.wikipedia.org/wiki/YAML#Hierarchical_combinations_of_elements

    Tell me if I'm even close here:

    modes:
    CTF:
    - name: Classic
    - time: 30


    And then, of course, my program would process it.
    Is that right?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  2. Offline

    Jayjay110

    look at my sig
     
  3. Offline

    nickguletskii

    How about you do some research before posting? This isn't rocket science, find an opensource plugin and analyse.
     
Thread Status:
Not open for further replies.

Share This Page