mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-08-29 13:20:32 +00:00
Add author option to config pack
This commit is contained in:
@@ -107,7 +107,7 @@ public class ConfigPack {
|
|||||||
|
|
||||||
load(new FolderLoader(folder.toPath()));
|
load(new FolderLoader(folder.toPath()));
|
||||||
|
|
||||||
LangUtil.log("config-pack.loaded", Level.INFO, template.getID(), String.valueOf((System.nanoTime() - l) / 1000000D));
|
LangUtil.log("config-pack.loaded", Level.INFO, template.getID(), String.valueOf((System.nanoTime() - l) / 1000000D), template.getAuthor());
|
||||||
}
|
}
|
||||||
|
|
||||||
public ConfigPack(ZipFile file) throws ConfigException {
|
public ConfigPack(ZipFile file) throws ConfigException {
|
||||||
|
|||||||
@@ -85,10 +85,18 @@ public class ConfigPackTemplate implements ConfigTemplate {
|
|||||||
@Default
|
@Default
|
||||||
private boolean vanillaStructures = false;
|
private boolean vanillaStructures = false;
|
||||||
|
|
||||||
|
@Value("author")
|
||||||
|
@Default
|
||||||
|
private String author = "Anon Y. Mous";
|
||||||
|
|
||||||
public String getID() {
|
public String getID() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getAuthor() {
|
||||||
|
return author;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean vanillaMobs() {
|
public boolean vanillaMobs() {
|
||||||
return vanillaMobs;
|
return vanillaMobs;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ world-config:
|
|||||||
error: "Unable to load configuration for world %s"
|
error: "Unable to load configuration for world %s"
|
||||||
done: "World load complete. Time elapsed: %sms"
|
done: "World load complete. Time elapsed: %sms"
|
||||||
config-pack:
|
config-pack:
|
||||||
loaded: "Loaded config %1$s in %2$sms."
|
loaded: "config %1$s by %3$s loaded in %2$sms."
|
||||||
config:
|
config:
|
||||||
loaded: "Loaded %1$s from file %2$s"
|
loaded: "Loaded %1$s from file %2$s"
|
||||||
loaded-all: "Loaded %1$s %2$s(s) in %3$sms."
|
loaded-all: "Loaded %1$s %2$s(s) in %3$sms."
|
||||||
|
|||||||
Reference in New Issue
Block a user