Back to snapshots

This commit is contained in:
Brokkonaut
2019-12-20 05:37:55 +01:00
parent 8e948e857f
commit cdee5b3609
3 changed files with 6 additions and 12 deletions

View File

@ -4,7 +4,7 @@
<groupId>de.diddiz</groupId>
<artifactId>logblock</artifactId>
<version>1.15.1</version>
<version>1.15.1.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>LogBlock</name>

View File

@ -729,16 +729,8 @@ class Updater {
config.set("version", "1.13.1");
}
if (configVersion.compareTo(new ComparableVersion("1.13.2")) < 0) {
config.set("version", "1.13.2");
}
if (configVersion.compareTo(new ComparableVersion("1.14.1")) < 0) {
config.set("version", "1.14.1");
}
if (configVersion.compareTo(new ComparableVersion("1.15.1")) < 0) {
config.set("version", "1.15.1");
if (configVersion.compareTo(new ComparableVersion(Config.CURRENT_CONFIG_VERSION)) < 0) {
config.set("version", Config.CURRENT_CONFIG_VERSION);
}
// this can always be checked

View File

@ -59,6 +59,8 @@ public class Config {
// Not loaded from config - checked at runtime
public static boolean mb4 = false;
public static final String CURRENT_CONFIG_VERSION = "1.15.1";
public static enum LogKillsLevel {
PLAYERS,
MONSTERS,
@ -68,7 +70,7 @@ public class Config {
public static void load(LogBlock logblock) throws DataFormatException, IOException {
final ConfigurationSection config = logblock.getConfig();
final Map<String, Object> def = new HashMap<>();
def.put("version", logblock.getDescription().getVersion());
def.put("version", CURRENT_CONFIG_VERSION);
final List<String> worldNames = new ArrayList<>();
for (final World world : getWorlds()) {
worldNames.add(world.getName());