Closed pdinklag closed 11 months ago
Just Looked around a bit, wouldn't it be better to use the official API anyways ? API DOCS: https://bluecolored.de/bluemapapi/latest/de/bluecolored/bluemap/api/WebApp.html#getWebRoot()
Install : https://github.com/BlueMap-Minecraft/BlueMapAPI/wiki
Hey, Check the discord i wrote down some stuff there :)
Replying here to keep technicalities where they belong. First off, thanks for doing research on this!
So apparently BlueMap doesn't use YAML but whatever HOCON is, that explains of course. By adding BlueMap as a soft dependency to MinecraftStats, you should be able to force it to load after BlueMap and then the API could be used.
However, the BlueMap support is meant to be a small convenience feature. I won't increase the required Java version just for that, and the Configurate library that they use is totally overkill just to parse one particular string from their config.
The way I see it, I should probably just not try and parse the configuration at all, but just use a regular expression on the file to get the webRoot
.
Sure thing, happy to help out! :D Using a regex might be the best anyways to ignore special configtypes like that.
A user reported the following error message related to loading BlueMap's config in Paper: