Imagine i have this config file:
Games {
1 { #id
name="blabla1"
teams {
id {
name="SeiLaTeam1"
color="RED"
}
id {
name="SeiLaTeam2"
color="BLUE"
}
}
spawn {
world="world"
x=0
y=100
z=0
}
}
2 { #id
name="blabla2"
teams {
id {
name="blabla2Team1"
color="RED"
}
id {
name="blabla2Team2"
color="BLUE"
}
}
spawn {
world="world"
x=0
y=100
z=0
}
}
And i don’t know how much ids (#id) it has or either what would be those ids, how could i do loop throught the “Games” array?
I imagined something like this:
for(ConfigurationNode c : node.getNode("Games")."getListsInside()"){
// Do stuff
}
What would be that “getListsInside()”?