Adds hyphen before timestamp in file name, when creating backup YamlCfg

This commit is contained in:
Christian Koop 2022-11-16 02:03:41 +01:00
parent daa601688d
commit f8b3942de2
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ public class SongodaYamlConfig extends YamlConfiguration {
}
try {
Path targetPath = this.file.toPath().resolveSibling(this.file.getPath() + ".backup" + System.currentTimeMillis());
Path targetPath = this.file.toPath().resolveSibling(this.file.getPath() + ".backup-" + System.currentTimeMillis());
Files.copy(
this.file.toPath(),