mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-04 19:45:59 +00:00
file save
This commit is contained in:
parent
aa74a0fadd
commit
62073fa488
1 changed files with 4 additions and 0 deletions
|
@ -137,6 +137,10 @@ public class YamlTranslationFile extends TranslationFile {
|
||||||
@Override
|
@Override
|
||||||
public void saveFile() {
|
public void saveFile() {
|
||||||
try {
|
try {
|
||||||
|
if (!this.file.exists()) {
|
||||||
|
this.file.getParentFile().mkdirs();
|
||||||
|
this.file.createNewFile();
|
||||||
|
}
|
||||||
final FileWriter writer = new FileWriter(this.file);
|
final FileWriter writer = new FileWriter(this.file);
|
||||||
// String s = getYaml().dump(map);
|
// String s = getYaml().dump(map);
|
||||||
if ((this.header != null) && !this.fancyHead) {
|
if ((this.header != null) && !this.fancyHead) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue