From 17ed04e94516efd0c5335e305175b151faa9c1af Mon Sep 17 00:00:00 2001 From: boy0001 Date: Fri, 3 Apr 2015 20:40:13 +1100 Subject: [PATCH] + this --- .../intellectualcrafters/plot/listeners/PlayerEvents.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java index 51b0d4fb4..b598d03e0 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java @@ -116,6 +116,9 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi return; } Plot plot = MainUtil.getPlot(loc); + if (plot == null) { + return; + } Flag redstone = FlagManager.getPlotFlag(plot, "redstone"); if (redstone == null || (Boolean) redstone.getValue()) { return; @@ -162,6 +165,9 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi return; } Plot plot = MainUtil.getPlot(loc); + if (plot == null) { + return; + } Flag redstone = FlagManager.getPlotFlag(plot, "redstone"); if (redstone == null || (Boolean) redstone.getValue()) { return;