Chaining and Fallback
Use ChainedUpdateChecker when you want one source as primary and one or more backups.
UpdateSource github = UpdateChecker.builder("PVP-Index", "pvpindex-factions", "1.2.3").build();
UpdateSource modrinth = ModrinthUpdateChecker.builder("pvpindex-factions", "1.2.3")
.loaders(java.util.List.of("paper"))
.gameVersions(java.util.List.of("1.21.4"))
.build();
ChainedUpdateResult chained = ChainedUpdateChecker.builder()
.primary(github)
.backup(modrinth)
.build()
.checkNow();
Behavior
- First source that returns a successful result wins.
- If a source fails, the next one is tried automatically.
- You can inspect failed sources with
getFailuresBySource().