Skip to content

Commit b4215a1

Browse files
committed
Tweaks
1 parent 0f48bf6 commit b4215a1

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/config/BlueMapConfigManager.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
import org.jetbrains.annotations.Nullable;
3939

4040
import java.io.IOException;
41-
import java.nio.file.*;
41+
import java.nio.file.FileSystems;
42+
import java.nio.file.Files;
43+
import java.nio.file.Path;
44+
import java.nio.file.StandardOpenOption;
4245
import java.time.LocalDateTime;
4346
import java.util.*;
4447
import java.util.stream.Stream;
@@ -116,6 +119,7 @@ private CoreConfig loadCoreConfig(Path defaultDataFolder, boolean useMetricsConf
116119
.setConditional("metrics", useMetricsConfig)
117120
.setVariable("timestamp", LocalDateTime.now().withNano(0).toString())
118121
.setVariable("version", BlueMap.VERSION)
122+
.setVariable("mcVersion", minecraftVersion)
119123
.setVariable("data", formatPath(defaultDataFolder))
120124
.setVariable("implementation", "bukkit")
121125
.setVariable("render-thread-count", Integer.toString(suggestRenderThreadCount()))

BlueMapCommon/src/main/resources/de/bluecolored/bluemap/config/core.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ scan-for-mod-resources: true
2929
${metrics<<
3030
# 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/
3131
# This allows me to track the basic usage of BlueMap and helps me stay motivated to further develop this tool! Please leave it on :)
32-
# An example report looks like this: {"implementation":"${implementation}","version":"${version}"}
32+
# An example report looks like this: {"implementation":"${implementation}","version":"${version}","mcVersion":"${mcVersion}"}
3333
# Default is true
3434
metrics: true
3535
>>}

BlueMapCore/src/main/java/de/bluecolored/bluemap/core/resources/pack/datapack/DataPack.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,17 @@ public DataPack(int packVersion) {
6464

6565
@Override
6666
public void loadResources(Iterable<Path> roots) throws IOException, InterruptedException {
67-
Logger.global.logInfo("Loading datapack...");
67+
Logger.global.logDebug("Loading datapack...");
6868

6969
for (Path root : roots) {
7070
Logger.global.logDebug("Loading datapack from: " + root + " ...");
7171
loadResources(root);
7272
}
7373

74-
Logger.global.logInfo("Baking datapack...");
74+
Logger.global.logDebug("Baking datapack...");
7575
bake();
7676

77-
Logger.global.logInfo("Datapack loaded.");
77+
Logger.global.logDebug("Datapack loaded.");
7878
}
7979

8080
private void loadResources(Path root) throws InterruptedException, IOException {

0 commit comments

Comments
 (0)