基础服务器模组列表
我想要一个适用于我的私人 Fabric 服务器的工具,用于进行模组兼容性检查,类似于 Forge 在加入服务器时的模组列表握手机制。它还能以较为友好的方式通知玩家,而不是因为客户端/服务器端模组版本不同而导致的客户端崩溃或注册表重映射错误。这是一个简单的 Fabric 模组,旨在通过允许 Fabric 服务器要求客户端在加入前安装某些特定模组来实现这一目标。
依赖项
本模组需要 Fabric API,并且需要在客户端和服务器端都安装。
快速开始
对于玩家来说,只需将最新支持的版本拖放到你的 mods 文件夹中即可。无需进一步设置,因为它是在每个服务器的基础上配置的。
对于服务器管理员,请将最新支持的版本拖放到服务器的 mods 文件夹中并启动服务器以生成配置文件。根据需要配置所需的模组,最后连接一个已安装此模组以及配置好的所需模组的客户端。
Velocity 代理服务器设置也受支持,需要将最新版本安装在其 plugins 文件夹中。同时,还需要在所有预期的子服务器上安装服务端模组。
服务器配置
服务器上的必需客户端模组必须列在其生成的 required-mods.txt 文件中,否则它将默认要求安装所有已安装的服务端模组。
当前的 required-mods.txt 格式要求模组按以下格式列出:模组 ID 和版本号用下划线分隔,每行一个。可以使用星号作为前缀/后缀通配符,否则使用精确匹配。
示例配置:
cobblemon_1.3.1+1.19.2
twilightforest_*
create_*
问题或建议
如果有任何问题或建议,请在 Github 的 Issues 标签页中报告。
Basic Server Mod Lists
I wanted something for my private Fabric server that allowed for mod compatibility checking, similar to Forge's mod list handshake on server join. It would also notify players in a decently friendly matter, instead of Client crashes or registry remapping errors that are often caused by differing Client/Server mod versions. This is a simple Fabric mod that aims to achieve this, by allowing for Fabric servers to require certain mods for Clients to have before joining.
Requirements
This mod requires Fabric API and is required on both Client and Servers
Getting Started
For players, simply drag and drop the latest supported version in your mods folder. No further setup is required as it's configured on a per-server basis
For servers, drag and drop the latest supported version in its mods folder and start it up to generate a configuration file. Configure the required mods as desired and finally connect with a Client that has this mod and the configured required mods installed
Velocity proxy server setups are also supported and require for the latest version to be installed in its plugins folder. It is also required for the server-side mod to be installed in all desired sub-servers
Server Configuration
Required client mods on a server have to be listed in its generated 'required-mods.txt' file, otherwise it will default to require every installed server mod
The current 'required-mods.txt' format requires mods to be listed in the format of their mod id and version separated by an underscore on separate lines. An asterisk can be used for prefix/suffix wildcards, otherwise explicit matching is used
Example config:
cobblemon_1.3.1+1.19.2
twilightforest_*
create_*
Issues or Requests
If there are any issues or requests, please report it in the Issues tab on Github
评论 0
登录后参与评分
还没有评论,来抢沙发吧