diff --git a/pom.xml b/pom.xml index 18ddd747a..1a48c396a 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ UTF-8 PlotSquared - 3.0.13 + 3.0.14 PlotSquared jar diff --git a/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java b/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java index 40dabb1f4..0e0e7ad08 100644 --- a/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java +++ b/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java @@ -88,6 +88,9 @@ public class MainUtil { public static boolean isPlotArea(final Location location) { final PlotWorld plotworld = PS.get().getPlotWorld(location.getWorld()); + if (plotworld == null) { + return false; + } if (plotworld.TYPE == 2) { return ClusterManager.getCluster(location) != null; }