Don't fire 'PlotUnlinkEvent' twice on plot clear (#3947)

This commit is contained in:
Alexander Brandes 2023-02-23 09:26:30 +01:00 committed by GitHub
parent 94ca5cf679
commit f5118e6802
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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