diff --git a/core/src/main/java/de/erethon/dungeonsxl/announcer/AnnouncerCache.java b/core/src/main/java/de/erethon/dungeonsxl/announcer/AnnouncerCache.java index 686a4866..0fe59d7d 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/announcer/AnnouncerCache.java +++ b/core/src/main/java/de/erethon/dungeonsxl/announcer/AnnouncerCache.java @@ -46,7 +46,7 @@ public class AnnouncerCache { for (File file : folder.listFiles()) { addAnnouncer(new Announcer(plugin, file)); } - if (!announcers.isEmpty()) { + if (!announcers.isEmpty() && plugin.getMainConfig().getAnnouncmentInterval() > 0) { new AnnouncerTask(plugin).runTaskTimer(plugin, plugin.getMainConfig().getAnnouncmentInterval(), plugin.getMainConfig().getAnnouncmentInterval()); } Bukkit.getPluginManager().registerEvents(new AnnouncerListener(plugin), plugin);