Skip to content

Commit

Permalink
feat: Add option to disable update check
Browse files Browse the repository at this point in the history
  • Loading branch information
Plastikmensch committed Aug 1, 2022
1 parent c937ab6 commit a939b0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/org/dynmap/mobs/DynmapMobsPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a939b0c

Please sign in to comment.