diff --git a/Core/src/main/java/com/plotsquared/core/command/Clear.java b/Core/src/main/java/com/plotsquared/core/command/Clear.java index 75c380b55..ac141779a 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Clear.java +++ b/Core/src/main/java/com/plotsquared/core/command/Clear.java @@ -104,8 +104,10 @@ public class Clear extends Command { .hasPermission(player, "plots.continue"), TranslatableCaption.of("done.done_already_done")); confirm.run(this, () -> { if (Settings.Teleport.ON_CLEAR) { - plot.teleportPlayer(player, TeleportCause.COMMAND, result -> { - }); + plot.getPlayersInPlot().forEach(playerInPlot -> plot.teleportPlayer(playerInPlot, TeleportCause.COMMAND, + result -> { + } + )); } BackupManager.backup(player, plot, () -> { final long start = System.currentTimeMillis(); diff --git a/Core/src/main/java/com/plotsquared/core/command/Delete.java b/Core/src/main/java/com/plotsquared/core/command/Delete.java index 3992c377f..86ed9a944 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Delete.java +++ b/Core/src/main/java/com/plotsquared/core/command/Delete.java @@ -107,8 +107,10 @@ public class Delete extends SubCommand { } final long start = System.currentTimeMillis(); if (Settings.Teleport.ON_DELETE) { - plot.teleportPlayer(player, TeleportCause.COMMAND, result -> { - }); + plot.getPlayersInPlot().forEach(playerInPlot -> plot.teleportPlayer(playerInPlot, TeleportCause.COMMAND, + result -> { + } + )); } boolean result = plot.getPlotModificationManager().deletePlot(player, () -> { plot.removeRunning();