Don't fire 'PlotUnlinkEvent' twice on plot clear

This commit is contained in:
Alexander Brandes 2023-01-22 10:32:24 +01:00
parent 0dd8b1053c
commit dbd900f8c3
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -106,7 +106,6 @@ public class Clear extends Command {
BackupManager.backup(player, plot, () -> {
final long start = System.currentTimeMillis();
boolean result = plot.getPlotModificationManager().clear(true, false, player, () -> {
plot.getPlotModificationManager().unlink();
TaskManager.runTask(() -> {
plot.removeRunning();
// If the state changes, then mark it as no longer done