diff --git a/src/main/java/pw/yumc/YumCore/update/SubscribeTask.java b/src/main/java/pw/yumc/YumCore/update/SubscribeTask.java index 06334c4..4f022a0 100644 --- a/src/main/java/pw/yumc/YumCore/update/SubscribeTask.java +++ b/src/main/java/pw/yumc/YumCore/update/SubscribeTask.java @@ -109,7 +109,9 @@ public class SubscribeTask implements Runnable { this.branch = branch; this.isSecret = isSecret; this.isMaven = isMaven; - Bukkit.getScheduler().runTaskTimerAsynchronously(instance, this, 0, interval * 1200); + if (instance.isEnabled()) { + Bukkit.getScheduler().runTaskTimerAsynchronously(instance, this, 0, interval * 1200); + } } /**