跳到正文

Simple Updates Checker

作者:Beecube31

Just a simple updates checker library

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Simple Updates Checker

A lightweight and asynchronous update-checking library.


  • ⚡ Fully Asynchronous: Checks for updates in the background.
  • 🌐 Dynamic Remote Changelog Localization: Add new languages for changelogs directly to remote config file.
  • 📦 Multi-Version Support: Serve updates for multiple Minecraft versions (e.g., 1.20.1, 1.18.2, 1.12.2) from a single JSON Updates Information File.
  • 🧠 Smart Version Comparison: Uses Maven’s ComparableVersion. Never warns players about "updates" if they are running a newer dev/beta build.
  • 💬 Interactive Chat Notifications: Provides clickable download links and hover tooltips directly in the player’s chat.

How It Works

Host a single updates.json file on GitHub Pages, raw GitHub repo, or wherever you want.

Example updates.json

{
  "1.20.1": {
    "version": "1.2.0",
    "download_url": "" rel="noopener nofollow" target="_blank">https://www.curseforge.com/minecraft/mc-mods/your-mod",
    "changelog": {
      "en_us": "Added new cool features. Fixed crash with some mod.",
      "ru_ru": "Добавлены новые крутые штучки. Пофикшен краш с каким-то там модом.",
      "zh_cn": "新增了炫酷功能。修复了与某些模组冲突导致的崩溃问题。",
      "es_es": "Se han añadido nuevas funciones interesantes. Se ha solucionado un fallo que provocaba que el juego se colgara con algunos mods."
    }
  },
  "1.18.2": {
    "version": "1.0.0",
    "download_url": "" rel="noopener nofollow" target="_blank">https://www.curseforge.com/minecraft/mc-mods/your-mod",
    "changelog": {
      "en_us": "Initial mod release."
    }
  }
}

Localization Fallback Logic:
The library matches the player’s client language code. For example: if es_mx (Mexican Spanish) is not found, it checks es, then falls back to en_us, and finally defaults to the first available language in the JSON.


Developer Guide: How to Use in your mod

> See GitHub page


Update message in game:

In game look

常见问题

Simple Updates Checker 支持哪些 Minecraft 版本?

Simple Updates Checker 支持 Minecraft Java 版 1.20.1–26.1.2,共 3 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Simple Updates Checker 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Beecube31 的其他作品

查看全部 →