mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 14:46:45 +01:00
Fix tab completion for the backup command
This commit is contained in:
parent
f7d6ac00e4
commit
c4a70c0945
@ -95,7 +95,7 @@ public class PlayerBackupProfile implements BackupProfile {
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return backups;
|
||||
return (this.backupCache = backups);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ public final class Backup extends Command {
|
||||
final Plot plot = player.getCurrentPlot();
|
||||
if (plot != null) {
|
||||
final BackupProfile backupProfile = Objects.requireNonNull(PlotSquared.imp()).getBackupManager().getProfile(plot);
|
||||
if (!(backupProfile instanceof PlayerBackupProfile)) {
|
||||
if (backupProfile instanceof PlayerBackupProfile) {
|
||||
final CompletableFuture<List<com.plotsquared.core.backup.Backup>> backupList = backupProfile.listBackups();
|
||||
if (backupList.isDone()) {
|
||||
final List<com.plotsquared.core.backup.Backup> backups = backupList.getNow(new ArrayList<>());
|
||||
|
Loading…
Reference in New Issue
Block a user