From 9ad45750eec8fc04977d1046f4ae12165e4b1193 Mon Sep 17 00:00:00 2001 From: MattBDev Date: Fri, 9 Dec 2016 20:58:05 -0500 Subject: [PATCH] Unclaiming a plot should call plotExit() --- .../java/com/intellectualcrafters/plot/object/Plot.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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;