diff --git a/Plan/src/main/java/com/djrapitops/plan/system/tasks/BukkitTaskSystem.java b/Plan/src/main/java/com/djrapitops/plan/system/tasks/BukkitTaskSystem.java index a6f962973..d73db3f6e 100644 --- a/Plan/src/main/java/com/djrapitops/plan/system/tasks/BukkitTaskSystem.java +++ b/Plan/src/main/java/com/djrapitops/plan/system/tasks/BukkitTaskSystem.java @@ -30,10 +30,12 @@ public class BukkitTaskSystem extends ServerTaskSystem { @Override public void enable() { super.enable(); - PingCountTimer pingCountTimer = new PingCountTimer(); - ((Plan) plugin).registerListener(pingCountTimer); - RunnableFactory.createNew("PingCountTimer", pingCountTimer) - .runTaskTimer(20L, PingCountTimer.PING_INTERVAL); + if (Check.isSpigotAvailable()) { + PingCountTimer pingCountTimer = new PingCountTimer(); + ((Plan) plugin).registerListener(pingCountTimer); + RunnableFactory.createNew("PingCountTimer", pingCountTimer) + .runTaskTimer(20L, PingCountTimer.PING_INTERVAL); + } } @Override