diff --git a/Core/src/main/java/com/intellectualcrafters/plot/object/Plot.java b/Core/src/main/java/com/intellectualcrafters/plot/object/Plot.java index 7320beae4..6a46ea13a 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/object/Plot.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/object/Plot.java @@ -29,6 +29,7 @@ import com.intellectualcrafters.plot.util.block.LocalBlockQueue; import com.intellectualcrafters.plot.util.expiry.ExpireManager; import com.intellectualcrafters.plot.util.expiry.PlotAnalysis; import com.plotsquared.listener.PlotListener; + import java.awt.geom.Area; import java.awt.geom.PathIterator; import java.awt.geom.Rectangle2D; @@ -46,7 +47,6 @@ import java.util.Map.Entry; import java.util.Set; import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.atomic.AtomicInteger; /** * The plot class
@@ -767,7 +767,6 @@ public class Plot { @Override public void run() { if (queue.isEmpty()) { - AtomicInteger finished = new AtomicInteger(0); Runnable run = new Runnable() { @Override public void run() { @@ -1095,8 +1094,8 @@ public class Plot { DBFunc.delete(current); current.owner = null; current.settings = null; - for (PlotPlayer pp : current.getPlayersInPlot()) { - PlotListener.plotEntry(pp, current); + for (PlotPlayer player : current.getPlayersInPlot()) { + PlotListener.plotExit(player, current); } } return true;