From 183d73382530a6d3cfa7982047d28ff010fe963f Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Wed, 9 Oct 2019 16:28:33 -0400 Subject: [PATCH] Add a check to prevent PlotSquared Features from trying to load. --- .../main/java/com/boydti/fawe/bukkit/FaweBukkit.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 26b517b31..e5452b80b 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 @@ -84,10 +84,12 @@ public class FaweBukkit implements IFawe, Listener { if (PaperLib.isPaper() && Settings.IMP.EXPERIMENTAL.DYNAMIC_CHUNK_RENDERING > 1) { new RenderListener(plugin); } - try { - WEManager.IMP.managers.add(new PlotSquaredFeature()); - } catch (Exception ignored) { - //Not everyone uses or needs PlotSquared. + if (Bukkit.getPluginManager().getPlugin("PlotSquared") != null) { + try { + WEManager.IMP.managers.add(new PlotSquaredFeature()); + } catch (Exception ignored) { + //Not everyone uses or needs PlotSquared. + } } } catch (final Throwable e) { e.printStackTrace();