forked from LogBlock/LogBlock
Back to snapshots
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<groupId>de.diddiz</groupId>
|
<groupId>de.diddiz</groupId>
|
||||||
<artifactId>logblock</artifactId>
|
<artifactId>logblock</artifactId>
|
||||||
<version>1.15.1</version>
|
<version>1.15.1.1-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>LogBlock</name>
|
<name>LogBlock</name>
|
||||||
|
@@ -729,16 +729,8 @@ class Updater {
|
|||||||
config.set("version", "1.13.1");
|
config.set("version", "1.13.1");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (configVersion.compareTo(new ComparableVersion("1.13.2")) < 0) {
|
if (configVersion.compareTo(new ComparableVersion(Config.CURRENT_CONFIG_VERSION)) < 0) {
|
||||||
config.set("version", "1.13.2");
|
config.set("version", Config.CURRENT_CONFIG_VERSION);
|
||||||
}
|
|
||||||
|
|
||||||
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");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// this can always be checked
|
// this can always be checked
|
||||||
|
@@ -59,6 +59,8 @@ public class Config {
|
|||||||
// Not loaded from config - checked at runtime
|
// Not loaded from config - checked at runtime
|
||||||
public static boolean mb4 = false;
|
public static boolean mb4 = false;
|
||||||
|
|
||||||
|
public static final String CURRENT_CONFIG_VERSION = "1.15.1";
|
||||||
|
|
||||||
public static enum LogKillsLevel {
|
public static enum LogKillsLevel {
|
||||||
PLAYERS,
|
PLAYERS,
|
||||||
MONSTERS,
|
MONSTERS,
|
||||||
@@ -68,7 +70,7 @@ public class Config {
|
|||||||
public static void load(LogBlock logblock) throws DataFormatException, IOException {
|
public static void load(LogBlock logblock) throws DataFormatException, IOException {
|
||||||
final ConfigurationSection config = logblock.getConfig();
|
final ConfigurationSection config = logblock.getConfig();
|
||||||
final Map<String, Object> def = new HashMap<>();
|
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<>();
|
final List<String> worldNames = new ArrayList<>();
|
||||||
for (final World world : getWorlds()) {
|
for (final World world : getWorlds()) {
|
||||||
worldNames.add(world.getName());
|
worldNames.add(world.getName());
|
||||||
|
Reference in New Issue
Block a user