Compare commits

...

2 Commits
6.0.5 ... 6.0.6

Author SHA1 Message Date
Auxilor
70a4a06d4f Updated to 6.0.6 2021-07-24 01:12:55 +01:00
Auxilor
bbee18fd8a JSON config files now have same deletion behaviour as yaml config files 2021-07-24 01:12:46 +01:00
2 changed files with 4 additions and 3 deletions

View File

@@ -116,9 +116,10 @@ public class EcoLoadableJSONConfig extends EcoJSONConfigWrapper implements Loada
@Override @Override
public void save() throws IOException { public void save() throws IOException {
configFile.delete(); if (configFile.delete()) {
Files.write(configFile.toPath(), this.toPlaintext().getBytes(), StandardOpenOption.CREATE, StandardOpenOption.WRITE); Files.write(configFile.toPath(), this.toPlaintext().getBytes(), StandardOpenOption.CREATE, StandardOpenOption.WRITE);
} }
}
public void init(@NotNull final File file) throws FileNotFoundException { public void init(@NotNull final File file) throws FileNotFoundException {

View File

@@ -1,2 +1,2 @@
version = 6.0.5 version = 6.0.6
plugin-name = eco plugin-name = eco