
它是什么?
Dynamic Pack Manager 是一款 Minecraft 模组,允许服务器管理员在不要求客户端重新登录的情况下刷新客户端的资源包。这对于频繁更新资源包的服务器来说非常有用。
用法
该模组提供了用于管理服务器上所有资源包的命令,可以针对所有玩家或特定玩家执行。这些命令可以从服务器控制台或由拥有相应权限的玩家执行。
模组的关键行为:
- 当玩家加入服务器时,模组会检查他们是否已安装所需的资源包。如果没有,模组会将资源包发送给玩家。
- 如果资源包是强制性的,玩家将因未安装资源包而被踢出服务器,直到安装为止。
- 如果资源包是可选的,玩家可以无需该资源包加入服务器。
- 当资源包更新后,管理员可以将更新的包发送给所有在线玩家或特定玩家。
模组的 UUID 用于客户端判断资源包是否已经安装。如果 UUID 与已安装的匹配,客户端将不会重新下载该包,从而避免不必要的下载。
模组自带一个默认动态包 dynamicpack_languages 资源包。此包包含模组的语言文件。使用模组时必须加载它;虽然可以移除它,但这样做会导致模组命令的翻译功能失效。
命令
/dynamicpack list
列出当前服务器上可用的所有资源包。
/dynamicpack add <name> <url> <required> (message)
向服务器添加新的资源包:
name:动态包的名字。
url:资源包的 URL。系统会验证 URL 以确保其指向有效的包(但不检查包本身的语法错误)。
required:布尔值,指定加入服务器是否需要此资源包。
message:可选消息,在玩家首次加入服务器显示。
/dynamicpack remove <name>
从服务器中移除资源包。
/dynamicpack update <name> [name|required|message] <value>
更新服务器上的资源包:
name:动态包的名字。
name|required|message:要更新的字段。
value:指定字段的新值。
/dynamicpack send <targets> <name> (message)
向特定玩家或组发送资源包:
targets:接收资源包的目标玩家(使用 @a 发送给所有玩家)。
name:动态包的名字。
message:如果玩家尚未拥有该资源包,则显示的可选消息。
/dynamicpack reloadconfig
重新加载模组的配置文件。适用于手动修改配置文件而非使用命令的情况。
支持与赞助
如果您喜欢使用本模组并希望支持其开发,请考虑通过 GitHub Sponsors 或 Patreon 进行赞助。您的支持有助于改进和维护该项目,从而实现更频繁的更新和新功能的发布。

What is it ?
Dynamic Pack Manager is a Minecraft mod that allows server administrators to refresh the resource pack on a client's game without requiring the client to relog. This is particularly useful for servers that frequently update their resource packs.
Usage
The mod provides commands to manage all resource packs on the server, either for all players or specific players. These commands can be executed from the server console or by players with the appropriate permissions.
Key behaviors of the mod:
- When a player joins the server, the mod checks if they have the required resource pack installed. If not, the mod sends the resource pack to the player.
- If the resource pack is mandatory, the player will be kicked from the server until the resource pack is installed.
- If the resource pack is optional, the player can join the server without it.
- When the resource pack is updated, an admin can send the updated pack to all connected players or specific ones.
The UUID of the mod is used by the client to determine if the resource pack is already installed. If the UUID matches the one already installed, the client will not re-download the pack, preventing unnecessary downloads.
The mod comes with one default dynamic pack, the dynamicpack_languages resource pack. This pack contains the language files for the mod. It is required to use the mod, and while it can be removed, doing so will disable translations for the mod commands.
Commands
/dynamicpack list
Lists all resource packs currently available on the server.
/dynamicpack add <name> <url> <required> (message)
Adds a new resource pack to the server:
name: The name of the dynamic pack.
url: The URL of the resource pack. The URL is verified to ensure it points to a valid pack (syntax errors in the pack itself are not checked).
required: A boolean that specifies whether the resource pack is required to join the server.
message: An optional message displayed to players when the resource pack is added on their first join.
/dynamicpack remove <name>
Removes a resource pack from the server.
/dynamicpack update <name> [name|required|message] <value>
Updates a resource pack on the server:
name: The name of the dynamic pack.
name|required|message: The field to update.
value: The new value for the specified field.
/dynamicpack send <targets> <name> (message)
Sends a resource pack to a specific player or group:
targets: The player(s) to send the resource pack to (use @a to send to all players).
name: The name of the dynamic pack.
message: An optional message shown to players if they don’t already have the resource pack.
/dynamicpack reloadconfig
Reloads the mod's configuration file. Useful when making manual changes to the config file instead of using commands.
Support and Sponsorship
If you enjoy using this mod and would like to support its development, please consider sponsoring via GitHub Sponsors or Patreon. Your support helps improve and maintain this project, enabling more frequent updates and new features.
评论 0
登录后参与评分
还没有评论,来抢沙发吧