Better Server Packs (Fabric)
Better Server Packs 是一个服务端模组,它替换了旧的服务端资源包逻辑,允许在服务器运行时更改和更新服务端资源包。
服务端资源包有什么问题?
目前服务端资源包面临的问题是,关于它们的所有配置(包括哈希值)都存储在 server.properties 文件中。虽然从技术上讲,哈希值对于服务器来说是可选的,但如果不使用哈希值,在更新资源包时会导致各种奇怪的问题,致使客户端无法更新资源包。
另一方面,使用哈希值则需要在每次更新资源包时重启服务器,而且计算哈希值也非常麻烦。(经常会出现工具为文件生成错误哈希值的情况。)
BSP 如何解决这个问题?
BSP 为你的服务器添加了新的 /pack 命令,允许操作员更新服务端资源包或将更新推送给所有用户。
命令
/pack set [<url>] [push]- 此命令更新服务端资源包的 URL 和哈希值。
URL 需要用引号括起来作为字符串。
如果你添加了可选的
push参数,所有在线玩家都将收到资源包更新。
- 此命令更新服务端资源包的 URL 和哈希值。
URL 需要用引号括起来作为字符串。
如果你添加了可选的
/pack reload [push]- 此命令强制重新加载资源包哈希值,例如当你已在服务器上更新了资源包时。
/pack push [<players>]- 强制将资源包更新推送给选定的玩家,如果未指定玩家参数,则推送给所有玩家。
/pack required [true|false]- 设置加入服务器是否*必须使用该资源包
(仅调用
/pack required将显示该选项的当前值)。
- 设置加入服务器是否*必须使用该资源包
(仅调用
/pack prompt [<prompt>|clear]- 设置玩家加入服务器时显示的提示语,或将其移除。不带参数调用此命令将显示当前的提示语。
/pack info- 显示当前的服务端资源包设置(由 BSP 管理)。
* 将 required 设置为 true 并不能保证玩家实际上会使用资源包。修改过的客户端可以绕过此选项
本项目是 BetterServerPacks 针对 1.21 Fabric 服务器的重写版本。
我还要感谢 Max Henkel 开发了出色的 config-builder 库并允许我使用它。Minecraft 模组的服务端配置库确实太少了。
Better Server Packs (Fabric)
Better Server Packs is a server-side mod that replaces the old server-resourcepack logic to allow changing and updating the server resourcepack while the server is running.
What is wrong with Server Resourcepacks?
The issue Server Resourcepacks face currently is that all config about them (including the hash) is stored in the server.properties file. Although hashes are technically optional for servers, not using one will cause all sorts of weirdness when updating the resourcepack resulting in packs not updating on the client.
Using a hash on the other hand, requires a server restart for every update of the resourcepack and hashes are also a pain to compute. (Often tools will generate incorrect hashes for a file.)
How does BSP solve this?
BSP adds the new /pack command to your server that allows operators
to update the server resourcepack or push an update out to every user.
Commands
/pack set [<url>] [push]- This command updates the server resourcepack's URL
and hash.
The URL will need to be in a quoted-string.
If you add the optional
pushargument, all online players will receive a resourcepack update.
- This command updates the server resourcepack's URL
and hash.
The URL will need to be in a quoted-string.
If you add the optional
/pack reload [push]- This command forcibly reloads the resourcepack hash such as when you have updated the resourcepack on your server.
/pack push [<players>]- Forcibly pushes a resourcepack update to the selected players, or all if the player argument is unspecified.
/pack required [true|false]- Sets if the resourcepack is required* to join the server
(simply calling
/pack requiredwill show the current value of the option.
- Sets if the resourcepack is required* to join the server
(simply calling
/pack prompt [<prompt>|clear]- Set the prompt shown to the player when joining the server or remove it. Calling this with no parameters will show the current prompt.
/pack info- Shows the current server resourcepack settings (managed by BSP).
* Setting required to true cannot guarantee that players actually use the resourcepack. Modified clients can circumvent this option
This project is a rewrite of BetterServerPacks for 1.21 Fabric servers.
I would also like to thank Max Henkel for developing the awesome config-builder library and allowing me to use it. There really aren't enough libraries for server-side configuration for Minecraft mods.
下载 Better Server Packs (Fabric)
下载 Better Server Packs (Fabric)
下载 Better Server Packs (Fabric)
下载 Better Server Packs (Fabric)
下载 Better Server Packs (Fabric)
下载 Better Server Packs (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Server Packs (Fabric)
下载 Better Server Packs (Fabric)
下载 Better Server Packs (Fabric)
下载 Better Server Packs (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧