Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved getNested() twice?

Comments in 'Plugin Development' started by Andrey Nazarchuk, Aug 20, 2015.

  1. Andrey Nazarchuk
    Offline

    Andrey Nazarchuk Active Member

    Joined:
    Dec 30, 2013
    Posts:
    332
    Minecraft User:
    digita1eclipse
    Hello everyone, how can I get a nested config twice?
    I wan to access coordinates of a numbered location in a world from the config, It looks like this:
    Code:
    $this->worlds = new Config($this->getDataFolder()."worlds.yml", Config::YAML, array(
      "JungleRuins" => "
       - 0
        - 128 
        - 5
        - 128
       - 1
        - 128
        - 5
        - 128
       - 2
        - 128
        - 5
        - 128
       - 3
        - 128
        - 5
        - 128
       - 4
        - 128
        - 5
        - 128
       - 5
        - 128
        - 5
        - 128
       - 6
        - 128
        - 5
        - 128
      - 7
        - 128
        - 5
        - 128
      ",
    //more here
      ));
    
    Basically I just want to access JungleRuins and then get nested again of "0" to get coordinates.
    Thanks people.
  2. Andrey Nazarchuk
    Offline

    Andrey Nazarchuk Active Member

    Joined:
    Dec 30, 2013
    Posts:
    332
    Minecraft User:
    digita1eclipse
    Thank you, but how would I change the config?
  3. Andrey Nazarchuk
    Offline

    Andrey Nazarchuk Active Member

    Joined:
    Dec 30, 2013
    Posts:
    332
    Minecraft User:
    digita1eclipse
    THANK YOU SO MUCH YOU ARE AWESOME. I remember when we talked more and where planning a project together lol.

Share This Page

Advertisement