mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
Fix reading of 'webpath' by Regions component - was reading its own
config instead of top-level one
This commit is contained in:
parent
e584e3202b
commit
2c3e8fbdc0
@ -466,4 +466,8 @@ public class DynmapPlugin extends JavaPlugin {
|
|||||||
pluginManager.disablePlugin(this);
|
pluginManager.disablePlugin(this);
|
||||||
pluginManager.enablePlugin(this);
|
pluginManager.enablePlugin(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getWebPath() {
|
||||||
|
return configuration.getString("webpath", "web");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ public class RegionsComponent extends ClientComponent {
|
|||||||
|
|
||||||
outputFileName = outputFileName.substring(0, outputFileName.lastIndexOf("."))+".json";
|
outputFileName = outputFileName.substring(0, outputFileName.lastIndexOf("."))+".json";
|
||||||
|
|
||||||
File webWorldPath = new File(this.configuration.getString("webpath", "web")+"/standalone/", outputFileName);
|
File webWorldPath = new File(plugin.getWebPath()+"/standalone/", outputFileName);
|
||||||
Map<?, ?> regionData = (Map<?, ?>) regionConfig.getProperty(configuration.getString("basenode", "regions"));
|
Map<?, ?> regionData = (Map<?, ?>) regionConfig.getProperty(configuration.getString("basenode", "regions"));
|
||||||
if (webWorldPath.isAbsolute())
|
if (webWorldPath.isAbsolute())
|
||||||
outputFile = webWorldPath;
|
outputFile = webWorldPath;
|
||||||
|
Loading…
Reference in New Issue
Block a user