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);
}
diff --git a/pom.xml b/pom.xml
index f85ae30a5..ea5039fe4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -70,8 +70,8 @@
http://maven.sk89q.com/artifactory/repo/
- vault-repo
- http://nexus.theyeticave.net/content/repositories/pub_releases
+ vault
+ http://nexus.hc.to/content/repositories/pub_releases/
empcraft-repo
@@ -80,9 +80,9 @@
- org.bukkit
- Spigot
- 1.10
+ org.spigotmc
+ spigot
+ 1.10.2-R0.1-SNAPSHOT
com.sk89q