Skip to content

Honour plugin-updates.check: false - #239

Merged
minoneer merged 1 commit into
masterfrom
fix/update-check-disabled
Oct 25, 2026
Merged

minoneer merged 1 commit into
masterfrom
fix/update-check-disabled

Conversation

@minoneer

Copy link
Copy Markdown
Member

plugin-updates.check: false didn't stop the update check: the task in uSkyBlock.java asked for the latest version every 4 hours regardless of the setting.

The task now calls checkForUpdatesIfEnabled(), which reads the current config on every run. Turning the option off with /usb reload stops further requests, and turning it on starts them again.

  • Tests: 3 new in uSkyBlockTest. With the check off, no request is made; with it on, one is; a reload that turns it off stops further requests. All three fail without the guard.
  • Independent of Check the latest GitHub release for plugin updates #238 (the GitHub source); the two merge cleanly. Both add the same testImplementation line for httpclient5.

The update check was scheduled every four hours and fetched the latest
version regardless of the option. The scheduled task now reads the
current config on each run and skips the request when the check is
disabled, so /usb reload can switch it on or off.
@minoneer
minoneer merged commit 8b2fc40 into master Oct 25, 2026
6 checks passed
@minoneer
minoneer deleted the fix/update-check-disabled branch October 25, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant