diff --git a/src/main/java/org/dynmap/mobs/DynmapMobsPlugin.java b/src/main/java/org/dynmap/mobs/DynmapMobsPlugin.java index 6ea7e3c..a903ddd 100644 --- a/src/main/java/org/dynmap/mobs/DynmapMobsPlugin.java +++ b/src/main/java/org/dynmap/mobs/DynmapMobsPlugin.java @@ -1521,7 +1521,11 @@ private void activate() { } /* Check for updates */ - getServer().getScheduler().scheduleSyncDelayedTask(this, new UpdateCheck()); + if(cfg.getBoolean("general.update-check", true)) { + getServer().getScheduler().scheduleSyncDelayedTask(this, new UpdateCheck()); + info("Update check enabled"); + } + else info("Update check disabled"); info("Activated"); } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 9ea7807..fed1567 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,5 +1,9 @@ # dynmap-mobs configuration # +general: + # Whether to check for updates + update-check: true + update: # Seconds between position updates for mobs period: 5.0