mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
No backups for merged plots 🐮
This commit is contained in:
parent
723e29cdd0
commit
8715a27a93
@ -43,8 +43,9 @@ public interface BackupManager {
|
||||
@NotNull BackupProfile getProfile(@NotNull final Plot plot);
|
||||
|
||||
/**
|
||||
* This will perform an automatic backup of the plot iff the plot has an owner
|
||||
* and automatic backups are enabled. Otherwise it will complete immediately.
|
||||
* This will perform an automatic backup of the plot iff the plot has an owner,
|
||||
* automatic backups are enabled and the plot is not merged.
|
||||
* Otherwise it will complete immediately.
|
||||
*
|
||||
* @param plot Plot to perform the automatic backup on
|
||||
* @return Future that completes when the backup is finished
|
||||
|
@ -56,7 +56,7 @@ import java.util.concurrent.CompletableFuture;
|
||||
}
|
||||
|
||||
@Override @NotNull public BackupProfile getProfile(@NotNull final Plot plot) {
|
||||
if (plot.hasOwner()) {
|
||||
if (plot.hasOwner() && !plot.isMerged()) {
|
||||
return new PlayerBackupProfile(plot.getOwnerAbs(), plot, this);
|
||||
}
|
||||
return new NullBackupProfile();
|
||||
|
Loading…
Reference in New Issue
Block a user