Fixed ConfigurationNode.
This commit is contained in:
parent
9dc81aa65a
commit
c3f0062862
2 changed files with 2 additions and 2 deletions
|
|
@ -143,7 +143,7 @@ public class DynmapPlugin extends JavaPlugin {
|
|||
webServer.handlers.put("/up/", new ClientUpdateHandler(mapManager, playerList, getServer(), configuration.getBoolean("health-in-json", false)));
|
||||
webServer.handlers.put("/up/configuration", new ClientConfigurationHandler(configuration.getNode("web")));
|
||||
/* See if regions configuration branch is present */
|
||||
for(ConfigurationNode type : configuration.getNode("web").getNodes("components")) {
|
||||
for(ConfigurationNode type : configuration.getNodes("web/components")) {
|
||||
if(type.getString("type").equalsIgnoreCase("regions")) {
|
||||
String fname = type.getString("filename", "regions.yml");
|
||||
fname = "/standalone/" + fname.substring(0, fname.lastIndexOf('.')) + "_"; /* Find our path base */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue