ClientModSync
服务端提供 clientmod 目录内的模组文件,客户端依据配置进行同步。
Features
- Server:
- Reads
server_root/clientmod - Starts an HTTP sync service
- Exposes:
GET /manifest.jsonGET /mods/<fileName>
- Reads
- Client:
- Checks whether synchronization is needed after mod load (at title screen)
- If no sync is needed, no sync UI is shown
- If sync is needed, shows sync UI
- Supports manual click (
Sync Now) - Supports auto mode (
Auto Next Time) with 5-second countdown - Shows progress bar (by mod count), current mod, and realtime speed during sync
- Automatically restarts client after sync completes to apply mod changes
功能说明
- 服务端:
- 读取
server_root/clientmod - 启动 HTTP 同步服务
- 提供接口:
GET /manifest.jsonGET /mods/<fileName>
- 读取
- 客户端:
- 模组加载后(主菜单)先检查是否需要同步
- 若检测为“不需要同步”,不会弹出同步界面
- 若检测为“需要同步”,弹出同步界面
- 支持手动点击(
立即同步) - 支持自动模式(
下次及以后自动同步,展示 5 秒后自动执行) - 同步过程中显示进度条(按模组数量)、当前同步模组、实时速度
- 同步完成后自动重启客户端以应用变更
Sync Modes
ADD_ONLY: Download missing mods only; do not delete extra local modsSTRICT: Strictly match serverclientmod(download/update missing or mismatched mods, delete extra local mods)
同步模式
ADD_ONLY:缺少则补,多余不处理STRICT:严格同步(缺少补齐、哈希不一致更新、多余删除)
Configuration
Config file: config/clientmodsync-common.toml
-
Server:
server.httpPort=58235
-
Client:
client.enabled=trueclient.serverIp=""(empty = use current connected server address)client.serverPort=58235client.downloadThreads=4(parallel download threads; higher is usually faster)client.syncMode="ADD_ONLY"(ADD_ONLYorSTRICT)
Client auto preference file:
config/clientmodsync-client.properties
配置
配置文件:config/clientmodsync-common.toml
-
服务端:
server.httpPort=58235
-
客户端:
client.enabled=trueclient.serverIp=""(留空则使用当前连接服务器地址)client.serverPort=58235client.downloadThreads=4(并行下载线程数,越高通常越快)client.syncMode="ADD_ONLY"(ADD_ONLY或STRICT)
客户端自动偏好配置文件:
config/clientmodsync-client.properties
Build
- Requires JDK 17
- Windows:
gradlew build - Output:
build/libs/clientmodsync-1.0.0.jar
构建
- 需要 JDK 17
- Windows:
gradlew build - 产物:
build/libs/clientmodsync-1.0.0.jar
Deployment
- Put
clientmodsync-1.0.0.jarinto both server and clientmods - Put required client mods into server
clientmod - Start server and launch client
- Run sync in UI and wait for automatic restart
部署
- 将
clientmodsync-1.0.0.jar放入服务端和客户端的mods - 将需要同步的模组放入服务端
clientmod - 启动服务端并打开客户端
- 在弹窗执行同步,随后客户端会自动重启
你是这个资源的作者?登录后可认领此资源。
相似资源
Save and Load Inventories
Serilum
? 使用命令保存和加载玩家或他人的背包/套装。
管理实用
87
另一个配置库 (YACL)
isxander
一个基于构建器的 Minecraft 配置库!
前置管理
66
反X射线透视AntiXray
DrexHD
一款轻量级模组,允许服务器管理员对抗透视作弊者。
管理科技
51
Mod Sets
settingdust
通过图形界面控制模组加载。适用于需要可选功能的整合包和服务器,也适合不想手动操作文件而希望直接管理模组的极客用户。
管理实用
43
MiguelEconomy MAX
Miguel-LFCG
一个完整经济模组:玩家余额、动态定价商店、玩家市场、买入订单、货币物品以及网页仪表盘。
经济管理
37
Serilum's Customization Bundle
Serilum
? 这是 Serilum 发布的一个自定义模组整合包,请设置你的模组包实例!
实用管理
37
评论 0
登录后参与评分
还没有评论,来抢沙发吧