diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/EntitySpawnListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/EntitySpawnListener.java index 4dedca86d..e693716fe 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/EntitySpawnListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/EntitySpawnListener.java @@ -22,6 +22,9 @@ public class EntitySpawnListener implements Listener { return; } Plot plot = area.getOwnedPlotAbs(location); + if (plot == null) { + return; + } if (Settings.Done.RESTRICT_BUILDING && plot.hasFlag(Flags.DONE)) { event.setCancelled(true); }