forked from SteamWar/SteamWar
Add FightInfoPacketSender for TowerRun
This commit is contained in:
@@ -39,6 +39,8 @@ public class Config {
|
||||
public static final int GAME_TIMER;
|
||||
public static final int GAME_ESCAPE_TIMER;
|
||||
|
||||
private static final int EventKampfID;
|
||||
|
||||
static {
|
||||
File configFile = new File(TowerRun.getInstance().getDataFolder(), "config.yml");
|
||||
if (!configFile.exists()) {
|
||||
@@ -53,6 +55,11 @@ public class Config {
|
||||
GAME_TIMER = config.getInt("gameTimer", 20 * 60);
|
||||
GAME_ESCAPE_TIMER = config.getInt("gameEscapeTimer", 60);
|
||||
DESTROYABLE_BLOCKS = EnumSet.copyOf(config.getStringList("destroyable").stream().map(Material::valueOf).collect(Collectors.toSet()));
|
||||
|
||||
EventKampfID = Integer.parseInt(System.getProperty("fightID", "0"));
|
||||
}
|
||||
|
||||
public static boolean test() {
|
||||
return EventKampfID == -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user