75% completion

This commit is contained in:
Paldiu
2023-01-30 21:16:50 -06:00
parent 5a48fb7285
commit 8f84583e4e
16 changed files with 401 additions and 55 deletions

View File

@ -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();
}
}