From ccd1505d14b9e817e687caa4980ddf0735546af6 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Tue, 14 Apr 2015 11:20:45 +0200 Subject: [PATCH] For the SpigotFeatures, actually make it throw. --- src/com/massivecraft/factions/spigot/SpigotFeatures.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/massivecraft/factions/spigot/SpigotFeatures.java b/src/com/massivecraft/factions/spigot/SpigotFeatures.java index a5382d27..66e4dba8 100644 --- a/src/com/massivecraft/factions/spigot/SpigotFeatures.java +++ b/src/com/massivecraft/factions/spigot/SpigotFeatures.java @@ -1,5 +1,7 @@ package com.massivecraft.factions.spigot; +import org.bukkit.event.player.PlayerInteractAtEntityEvent; + public class SpigotFeatures { // -------------------------------------------- // @@ -20,6 +22,10 @@ public class SpigotFeatures { try { + // This line will throw if the class does not exist. + PlayerInteractAtEntityEvent.class.getName(); + + // But if the event class exists we activate. EngineSpigot.get().activate(); } catch (Throwable t)