mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-12 16:37:38 +00:00
Kotlin (#19)
* spaces * revert kotlin ver * more framework for kotlin * make it available to external consumers * vscode * update scripts to properly catch broken runserveR * editor config * fix recursive zips * improve * update links * more cleanup
This commit is contained in:
1 parent
ab7a0eef67
commit
a71130d437
11 files changed
+109
-77
No files matched your search
@@ -6,7 +6,7 @@ import net.minecraftforge.common.config.Property;
|
||||
import java.io.File;
|
||||
|
||||
public class Config {
|
||||
|
||||
|
||||
private static class Defaults {
|
||||
public static final String greeting = "Hello World";
|
||||
}
|
||||
@@ -14,13 +14,13 @@ public class Config {
|
||||
private static class Categories {
|
||||
public static final String general = "general";
|
||||
}
|
||||
|
||||
|
||||
public static String greeting = Defaults.greeting;
|
||||
|
||||
public static void syncronizeConfiguration(File configFile) {
|
||||
Configuration configuration = new Configuration(configFile);
|
||||
configuration.load();
|
||||
|
||||
|
||||
Property greetingProperty = configuration.get(Categories.general, "greeting", Defaults.greeting, "How shall I greet?");
|
||||
greeting = greetingProperty.getString();
|
||||
|
||||
|
||||
Reference in new issue
Block a user