mirror of
https://github.com/SimplexDevelopment/Traverse.git
synced 2025-07-13 08:28:35 +00:00
75% completion
This commit is contained in:
@ -72,4 +72,18 @@ public abstract class Yaml extends YamlConfiguration implements Baker {
|
||||
getPlugin().getLogger().warning("Failed to unbake " + getFileName());
|
||||
}
|
||||
}
|
||||
|
||||
@SneakyThrows
|
||||
public void saveToFile() {
|
||||
unbake();
|
||||
super.save(yamlFile);
|
||||
bake();
|
||||
}
|
||||
|
||||
@SneakyThrows
|
||||
public void loadFromFile() {
|
||||
unbake();
|
||||
super.load(yamlFile);
|
||||
bake();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user