forked from SteamWar/SteamWar
Implement rest of PlotRegionBackups
This commit is contained in:
+1
-10
@@ -45,7 +45,6 @@ import java.util.stream.Collectors;
|
||||
public class FixedRegion implements Region {
|
||||
|
||||
private static final File backupFolder = new File(Bukkit.getWorlds().get(0).getWorldFolder(), "backup");
|
||||
private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy.MM.dd' 'HH:mm:ss");
|
||||
|
||||
private final String name;
|
||||
private final UUID uuid;
|
||||
@@ -75,7 +74,7 @@ public class FixedRegion implements Region {
|
||||
while (files.size() >= 20) files.remove(0).delete();
|
||||
}
|
||||
|
||||
final File backupFile = new File(definedBackupFolder, LocalDateTime.now().format(formatter) + ".schem");
|
||||
final File backupFile = new File(definedBackupFolder, LocalDateTime.now().format(FORMATTER) + ".schem");
|
||||
Point minPoint = area.getMinPoint(false);
|
||||
Point maxPoint = area.getMaxPoint(false);
|
||||
if (!FlatteningWrapper.impl.backup(minPoint, maxPoint, backupFile)) {
|
||||
@@ -138,14 +137,6 @@ public class FixedRegion implements Region {
|
||||
return file.lastModified();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void load(RegionData regionData) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete() {
|
||||
file.delete();
|
||||
|
||||
Reference in New Issue
Block a user