Check for PlotSquared before initializing the feature class

Some users are experiencing issues during startup with FAWE not finding PlotSquared resulting in errors.
This commit is contained in:
IronApollo 2020-02-22 21:02:12 -05:00
parent 3a050fba3b
commit 14ac3205ce

View File

@ -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.");
}