Fix nit picks

This commit is contained in:
2024-11-03 20:26:24 +01:00
parent 338f2e6ed1
commit 6fea09fb9d
2 changed files with 4 additions and 4 deletions
@@ -2,7 +2,7 @@
* *
* This file is a part of the SteamWar software. * This file is a part of the SteamWar software.
* *
* Copyright (C) 2020 SteamWar.de-Serverteam * Copyright (C) 2024 SteamWar.de-Serverteam
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by * it under the terms of the GNU Affero General Public License as published by
@@ -39,7 +39,7 @@ public class Config {
public static final int GAME_TIMER; public static final int GAME_TIMER;
public static final int GAME_ESCAPE_TIMER; public static final int GAME_ESCAPE_TIMER;
private static final int EventKampfID; private static final int EVENT_KAMPF_ID;
static { static {
File configFile = new File(TowerRun.getInstance().getDataFolder(), "config.yml"); File configFile = new File(TowerRun.getInstance().getDataFolder(), "config.yml");
@@ -56,10 +56,10 @@ public class Config {
GAME_ESCAPE_TIMER = config.getInt("gameEscapeTimer", 60); GAME_ESCAPE_TIMER = config.getInt("gameEscapeTimer", 60);
DESTROYABLE_BLOCKS = EnumSet.copyOf(config.getStringList("destroyable").stream().map(Material::valueOf).collect(Collectors.toSet())); DESTROYABLE_BLOCKS = EnumSet.copyOf(config.getStringList("destroyable").stream().map(Material::valueOf).collect(Collectors.toSet()));
EventKampfID = Integer.parseInt(System.getProperty("fightID", "0")); EVENT_KAMPF_ID = Integer.parseInt(System.getProperty("fightID", "0"));
} }
public static boolean test() { public static boolean test() {
return EventKampfID == -1; return EVENT_KAMPF_ID == -1;
} }
} }