Looping through specific config sections.

Discussion in 'Plugin Development' started by nateracecar5, Feb 23, 2014.

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

    nateracecar5

    Okay, so I have this config:
    Code:
    redstonefreak589:
      clan:
        title: "Clan1"
        owner: "true"
     
     
    bobwilson101:
      clan:
        title:"Clan1"
        owner: "false"
     
    Notch:
      clan:
        title:"Clan2"
        owner: "true"
    And what I want to do is loop through each player and get their clan title. If the clan title equals an argument, then set their clan option to "null". How would I do this?

    Of course, the names aren't real, they were changed to conceal data.

    SO SORRY! I didn't mean to create two posts, my internet was being weird, so I thought this didn't post. Can someone delete it or tell me how? Again, VERY SORRY!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
Thread Status:
Not open for further replies.

Share This Page