mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 07:49:03 +00:00
Update 3.1
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user