mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 18:17:37 +01:00
Merge pull request #229 from mikeprimm/master
Fix reading of webpath by regions component - load from top-level setting, instead of component local config
This commit is contained in:
commit
90bff11417
@ -466,4 +466,8 @@ public class DynmapPlugin extends JavaPlugin {
|
||||
pluginManager.disablePlugin(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";
|
||||
|
||||
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"));
|
||||
if (webWorldPath.isAbsolute())
|
||||
outputFile = webWorldPath;
|
||||
|
Loading…
Reference in New Issue
Block a user