From 8edc357d01c52f1cef74afe7b3b4934ab5d5b71f Mon Sep 17 00:00:00 2001 From: MattBDev Date: Sun, 27 Nov 2016 01:26:06 -0500 Subject: [PATCH] Fixed #1448 --- Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java index 446494c31..f79259eb3 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java @@ -450,8 +450,9 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain getServer().getPluginManager().registerEvents(main, this); try { getServer().getClass().getMethod("spigot"); + Class.forName("org.bukkit.event.entity.EntitySpawnEvent"); getServer().getPluginManager().registerEvents(new EntitySpawnListener(), this); - } catch (NoSuchMethodException ignored) { + } catch (NoSuchMethodException | ClassNotFoundException ignored) { PS.debug("Not running Spigot. Skipping EntitySpawnListener event."); } if (PS.get().checkVersion(getServerVersion(), BukkitVersion.v1_8_0)) {