Add version key to config pack.

This commit is contained in:
dfsek
2020-12-04 21:09:35 -07:00
parent 601eb3e7ff
commit 3d12af6b21
3 changed files with 10 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ public class ConfigPack {
load(new FolderLoader(folder.toPath()));
LangUtil.log("config-pack.loaded", Level.INFO, template.getID(), String.valueOf((System.nanoTime() - l) / 1000000D), template.getAuthor());
LangUtil.log("config-pack.loaded", Level.INFO, template.getID(), String.valueOf((System.nanoTime() - l) / 1000000D), template.getAuthor(), template.getVersion());
}
public ConfigPack(ZipFile file) throws ConfigException {

View File

@@ -93,6 +93,14 @@ public class ConfigPackTemplate implements ConfigTemplate {
@Default
private boolean disableSaplings = false;
@Value("version")
@Default
private String version = "0.1.0";
public String getVersion() {
return version;
}
public boolean isDisableSaplings() {
return disableSaplings;
}