This commit is contained in:
Lukas Rieger (Blue) 2024-06-14 01:00:07 +02:00
parent 0f48bf6428
commit b4215a1482
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6
3 changed files with 9 additions and 5 deletions

View File

@ -38,7 +38,10 @@
import org.jetbrains.annotations.Nullable;
import java.io.IOException;
import java.nio.file.*;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.time.LocalDateTime;
import java.util.*;
import java.util.stream.Stream;
@ -116,6 +119,7 @@ private CoreConfig loadCoreConfig(Path defaultDataFolder, boolean useMetricsConf
.setConditional("metrics", useMetricsConfig)
.setVariable("timestamp", LocalDateTime.now().withNano(0).toString())
.setVariable("version", BlueMap.VERSION)
.setVariable("mcVersion", minecraftVersion)
.setVariable("data", formatPath(defaultDataFolder))
.setVariable("implementation", "bukkit")
.setVariable("render-thread-count", Integer.toString(suggestRenderThreadCount()))

View File

@ -29,7 +29,7 @@ scan-for-mod-resources: true
${metrics<<
# If this is true, BlueMap might send really basic metrics reports containing only the implementation-type and the version that is being used to https://metrics.bluecolored.de/bluemap/
# This allows me to track the basic usage of BlueMap and helps me stay motivated to further develop this tool! Please leave it on :)
# An example report looks like this: {"implementation":"${implementation}","version":"${version}"}
# An example report looks like this: {"implementation":"${implementation}","version":"${version}","mcVersion":"${mcVersion}"}
# Default is true
metrics: true
>>}

View File

@ -64,17 +64,17 @@ public DataPack(int packVersion) {
@Override
public void loadResources(Iterable<Path> roots) throws IOException, InterruptedException {
Logger.global.logInfo("Loading datapack...");
Logger.global.logDebug("Loading datapack...");
for (Path root : roots) {
Logger.global.logDebug("Loading datapack from: " + root + " ...");
loadResources(root);
}
Logger.global.logInfo("Baking datapack...");
Logger.global.logDebug("Baking datapack...");
bake();
Logger.global.logInfo("Datapack loaded.");
Logger.global.logDebug("Datapack loaded.");
}
private void loadResources(Path root) throws InterruptedException, IOException {