Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70a4a06d4f | ||
|
|
bbee18fd8a |
@@ -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 {
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
version = 6.0.5
|
version = 6.0.6
|
||||||
plugin-name = eco
|
plugin-name = eco
|
||||||
Reference in New Issue
Block a user