mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 18:17:37 +01:00
Reverted map-structure for worlds, so that worlds have an order again.
This reverts commitf0cdd5614b
,fd0c430695
andcee491f610
.
This commit is contained in:
parent
e4e0d68537
commit
0db2296e97
@ -177,13 +177,13 @@ worlds:
|
||||
# Worlds can be handled by templates, based on world type
|
||||
# You can override the properties of the template by specifying them in this section
|
||||
# for example 'Title: "My Awesome World"'
|
||||
#world:
|
||||
#- name: world
|
||||
# title: "World"
|
||||
# # Use 'enabled: false' to disable a certain world.
|
||||
# Use 'enabled: false' to disable a certain world.
|
||||
# enabled: false
|
||||
# # Use 'template: mycustomtemplate' to use the properties specified in the template 'mycustomtemplate' to this world. Default it is set to the environment-name (normal or nether).
|
||||
# Use 'template: mycustomtemplate' to use the properties specified in the template 'mycustomtemplate' to this world. Default it is set to the environment-name (normal or nether).
|
||||
# template: mycustomtemplate
|
||||
# # Rest of comes from template - uncomment to tailor for world specifically
|
||||
# Rest of comes from template - uncomment to tailor for world specifically
|
||||
# center:
|
||||
# x: 0
|
||||
# y: 64
|
||||
@ -224,7 +224,7 @@ worlds:
|
||||
#- name: world2
|
||||
# title: "Second World"
|
||||
#
|
||||
#nether:
|
||||
#- name: nether
|
||||
# title: "Nether"
|
||||
# center:
|
||||
# x: 0
|
||||
|
@ -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…
Reference in New Issue
Block a user