Update 3.1

This commit is contained in:
Sn0wStorm
2021-06-15 20:54:19 +02:00
parent f66d8f9511
commit 3a44141a44
16 changed files with 66 additions and 47 deletions
+9 -1
View File
@@ -364,7 +364,15 @@ public class P extends JavaPlugin {
}
}));
metrics.addCustomChart(new SimplePie("cauldron_particles", () -> {
if (!BConfig.enableCauldronParticles) {
return "disabled";
}
if (BConfig.minimalParticles) {
return "minimal";
}
return "enabled";
}));
metrics.addCustomChart(new SimplePie("wakeups", () -> {
if (!BConfig.enableWake) {
return "disabled";
+1 -1
View File
@@ -40,7 +40,7 @@ import java.util.Map;
public class BConfig {
public static final String configVersion = "3.0";
public static final String configVersion = "3.1";
public static boolean updateCheck;
public static CommandSender reloader;
@@ -11,7 +11,6 @@ import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Objects;
public class ConfigUpdater {
@@ -250,9 +249,17 @@ public class ConfigUpdater {
} else {
update30en();
}
updateVersion(BConfig.configVersion);
fromVersion = "3.0";
}
if (fromVersion.equals("3.0")) {
if (de) {
update31de();
} else {
update31en();
}
updateVersion(BConfig.configVersion);
fromVersion = "3.1";
}
if (P.use1_13 && oldMat) {
updateMaterials(true);
@@ -2004,6 +2011,20 @@ public class ConfigUpdater {
"minimalParticles: false");
}
private void update31en() {
addLinesAt(new String[]{"minimalParticles:", "loadDataAsync:", "openLargeBarrelEverywhere:", "colorInBrewer:"}, 1,
"",
"# Allow emptying brews into hoppers to discard brews while keeping the glass bottle [true]",
"brewHopperDump: true");
}
private void update31de() {
addLinesAt(new String[]{"minimalParticles:", "loadDataAsync:", "openLargeBarrelEverywhere:", "colorInBrewer:"}, 1,
"",
"# Ob das Entleeren von Brewery Tränken mit Hilfe von Trichtern möglich ist, um die Glasflasche zurück zu bekommen [true]",
"brewHopperDump: true");
}
private void convertCookedSection(FileConfiguration yml, int toLine) {