mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-08 16:56:07 +00:00
Add version key to config pack.
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ world-config:
|
||||
error: "Unable to load configuration for world %s"
|
||||
done: "World load for world \"%1$s\" complete. Time elapsed: %2$sms"
|
||||
config-pack:
|
||||
loaded: "config %1$s by %3$s loaded in %2$sms."
|
||||
loaded: "Config pack %1$s v%4$s by %3$s loaded in %2$sms."
|
||||
config:
|
||||
loaded: "Loaded %1$s from file %2$s"
|
||||
loaded-all: "Loaded %1$s %2$s(s) in %3$sms."
|
||||
|
||||
Reference in New Issue
Block a user