Config.yml HELP

Discussion in 'Plugin Development' started by incinirate, Nov 1, 2014.

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

    incinirate

    Hello, I am storing 2d vectors inside a config.yml and am unsure on how to do one part.
    Code:
    regions: {
      spawn: [1,2,3,4],
      other: [3,4,5,6]
    }
    That is the config.yml

    So, lets say I wanted to get the integers inside of spawn, how would i go about doing that?
    (And yes, it shows up valid on http://yaml-online-parser.appspot.com/)
     
  2. Offline

    TheCodingCat

    Sorry incinirate I'm not 100% sure what it is you want. Can you explain a little more in detail?
     
  3. Offline

    incinirate

    Like if i wanted to get an integer[] from the spawn: [1,2,3,4]
    How would I do that?
     
  4. Offline

    TheCodingCat

    i dont think the bukkit API for Yaml files supports a object[] yet. Try saving it in another way incinirate
     
Thread Status:
Not open for further replies.

Share This Page