Iterate Through Specific Configuration Options

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

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

    nateracecar5

    So I have a config, and it's formatted like this:
    Code:
    Player1:
      clan:
        title: "Clan1"
        owner: "true"
     
    Player2:
      clan:
        title: "Clan1"
        owner: "false"
     
    Player3:
      clan:
        title: "Clan2"
        owner: "true"
    I'm making a disband function for a custom clans plugin I need, and I need to iterate through all the players clan titles, and if they match, I want to set "clan" to null. I found a tutorial on how to iterate through the main sections, and sub sections, but not this particular feature I need. Any help on this?
     
Thread Status:
Not open for further replies.

Share This Page