From 14ac3205ce3ce81f7ebedf5b8b0b39ee13d1e275 Mon Sep 17 00:00:00 2001 From: IronApollo Date: Sat, 22 Feb 2020 21:02:12 -0500 Subject: [PATCH] Check for PlotSquared before initializing the feature class Some users are experiencing issues during startup with FAWE not finding PlotSquared resulting in errors. --- .../src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java | 1 + 1 file changed, 1 insertion(+) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java index fb72c84de..31eb2c686 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java @@ -325,6 +325,7 @@ public class FaweBukkit implements IFawe, Listener { } private void setupPlotSquared() { + if(this.plugin.getServer().getPluginManager().getPlugin("PlotSquared") == null) return; WEManager.IMP.managers.add(new com.boydti.fawe.bukkit.regions.plotsquared.PlotSquaredFeature()); log.debug("Plugin 'PlotSquared' found. Using it now."); }