Reverted map-structure for worlds, so that worlds have an order again.
This reverts commitf0cdd5614b,fd0c430695andcee491f610.
This commit is contained in:
parent
e4e0d68537
commit
0db2296e97
2 changed files with 10 additions and 8 deletions
|
|
@ -406,9 +406,11 @@ public class DynmapPlugin extends JavaPlugin {
|
|||
}
|
||||
|
||||
private ConfigurationNode getWorldConfigurationNode(String worldName) {
|
||||
ConfigurationNode worlds = configuration.getNode("worlds");
|
||||
if (worlds != null)
|
||||
return configuration.getNode("worlds").getNode(worldName);
|
||||
for(ConfigurationNode worldNode : configuration.getNodes("worlds")) {
|
||||
if (worldName.equals(worldNode.getString("name"))) {
|
||||
return worldNode;
|
||||
}
|
||||
}
|
||||
return new ConfigurationNode();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue