Fix BackupCommand

This commit is contained in:
2025-09-29 17:46:20 +02:00
parent fc002abf37
commit abeb269368
2 changed files with 2 additions and 2 deletions
@@ -117,7 +117,7 @@ public class BackupCommand extends SWCommand {
@Mapper(value = "backup", local = true)
public TypeMapper<RegionBackups.Backup> backupMapper() {
return new TypeMapper<RegionBackups.Backup>() {
return new TypeMapper<>() {
@Override
public RegionBackups.Backup map(CommandSender commandSender, String[] previousArguments, String s) {
return Region.getRegion(((Player) commandSender).getLocation()).getBackups().get(s);
@@ -114,7 +114,7 @@ public class FixedRegion implements Region {
private final File file;
public BackupImpl(File file) {
super(RegionBackups.BackupType.AUTOMATIC, file.getName().replace(' ', '_'), flagStorage);
super(RegionBackups.BackupType.AUTOMATIC, file.getName().replace(' ', '_').replace(".schem", ""), flagStorage);
this.file = file;
}