Reverted map-structure for worlds, so that worlds have an order again.
This reverts commit0f4a8c2023,eb76fbe007and1b827459d0.
This commit is contained in:
parent
ce61394401
commit
8e946bcba2
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