mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
No backups for merged plots 🐮
This commit is contained in:
parent
723e29cdd0
commit
8715a27a93
2 changed files with 4 additions and 3 deletions
|
@ -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 a new issue