mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Fix shit backup error
Former-commit-id: 518b5019ed48a5b8da1171f2960a2a0cdd2231a0 [formerly 0dd91b869ced9e0e3898c8e93779ee84893ab265] Former-commit-id: c535cd5469cf8c269038b313b89d86bd38282827
This commit is contained in:
1 parent
ba015b9ce5
commit
4ad753c833
1 file changed
+2
-2
@@ -77,13 +77,13 @@ public class Util {
|
||||
return true; //Backup and logs by MySQL
|
||||
}
|
||||
File dataFolder = plugin.getDataFolder();
|
||||
File sqlfile = new File(dataFolder, "shop.db");
|
||||
File sqlfile = new File(dataFolder, "shops.db");
|
||||
if (!sqlfile.exists()) {
|
||||
plugin.getLogger().warning("Failed to backup! (File not found)");
|
||||
return false;
|
||||
}
|
||||
String uuid = UUID.randomUUID().toString().replaceAll("_", "");
|
||||
File bksqlfile = new File(dataFolder, "/shop_backup_" + uuid + ".db");
|
||||
File bksqlfile = new File(dataFolder, "/shops_backup_" + uuid + ".db");
|
||||
try {
|
||||
Files.copy(sqlfile, bksqlfile);
|
||||
} catch (Exception e1) {
|
||||
|
||||
Reference in new issue
Block a user