mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Add a check to prevent PlotSquared Features from trying to load.
This commit is contained in:
parent
da3019ae3d
commit
183d733825
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user