Skip to content

Commit

Permalink
Write minimum required client version into summary #257
Browse files Browse the repository at this point in the history
  • Loading branch information
pdinklag committed Aug 6, 2024
1 parent 6274e80 commit 2f9cb60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/de/pdinklag/mcstats/Updater.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@
import de.pdinklag.mcstats.util.ClientUtils;
import de.pdinklag.mcstats.util.JSONUtils;
import de.pdinklag.mcstats.util.MinecraftServerUtils;
import de.pdinklag.mcstats.util.Version;

/**
* The heart of MinecraftStats.
*/
public abstract class Updater {
private static final Version MIN_CLIENT_VERSION = new Version(3, 4, 0);

private static final String JSON_FILE_EXT = ".json";
private static final int MIN_DATA_VERSION = 1451; // 17w47a
private static final String DATABASE_DIRNAME = "data";
Expand Down Expand Up @@ -703,6 +706,7 @@ public void run(ConsoleWriter consoleWriter) {
info.put("serverName", serverName);
info.put("updateTime", ClientUtils.convertTimestamp(now));
info.put("updateVersion", getVersion());
info.put("minClientVersion", MIN_CLIENT_VERSION);
info.put("defaultLanguage", config.getDefaultLanguage());
info.put("minPlayTime", config.getMinPlaytime());
info.put("showLastOnline", config.isShowLastOnline());
Expand Down

0 comments on commit 2f9cb60

Please sign in to comment.