PackStacker
PackStacker 是一个简单的资源管理插件,旨在为 Minecraft 客户端“堆叠”资源包。
下载链接请参见 releases。
简短指南
资源包通过 .pack 文件进行定义。请导航至服务器 plugins 文件夹下的 PackStacker/packs/ 目录。
要定义一个资源包,请在 packs 文件夹下创建一个扩展名为 .pack 的文件。(例如 example.pack)
.pack 文件遵循 YAML 语法。以下是一个示例 .pack 文件:
name: "MvndiPack"
url: "https://github.com/HydrolienF/MvndiPack/releases/download/1.20.6.425/MvndiPack.zip"
hash: "D64DCFA57B5A94383FA39F32BE3B6D38D853304C"
priority: 0
required: true
prompt: "Hello <rainbow>world</rainbow>."
load_on_join: true
必需的资源包选项
name 资源包的名称。两个资源包不能具有相同的名称。资源包名称 必须 是唯一的。
url 资源包的 URL。此 URL 必须是直接下载链接。通常,这些链接以文件格式 .zip 结尾。
hash 资源包的 SHA1 哈希值。您可以在 Windows 上运行 certutil -hashfile "filename.exe" SHA1 来获取此值。
可选的资源包选项
priority 一个数值,对应于该资源包显示的顺序。数值越低,表示该资源包在客户端处于“更低”的层级。默认值:0(无优先级)
required 如果玩家拒绝接受该资源包,是否踢出客户端。默认值:false
prompt 当向客户端请求资源包时,用户将看到的兼容 MiniMessage 格式的字符串。默认值:无提示(null)
load_on_join 是否在玩家加入时提示加载此资源包。默认值:false
命令
/pack PackStacker 的核心命令。
/pack list 向运行此命令的用户显示可用的资源包列表。
/pack load <packName> 在运行此命令的玩家身上加载指定的资源包。权限:pack.load.self
/pack load <packName> <username> 在指定的在线玩家身上加载资源包。权限:pack.load.others
/pack unload <packName> 在运行此命令的玩家身上卸载指定的资源包。权限:pack.unload.self
/pack unload <packName> <username> 在指定的在线玩家身上卸载资源包。权限:pack.unload.others
/pack reload <messages | packs | all> 重新加载 PackStacker 的指定目录。权限:pack.reload.messages | pack.reload.packs | pack.reload.all
许可证
PackStacker 根据 GNU AFFERO GENERAL PUBLIC LICENSE 授权。
PackStacker
PackStacker is a simple resource management plugin intended for "stacking" packs on minecraft clients.
Downloads can be found at releases.
Short Guide
Resource packs are defined through ".pack" files. Navigate to PackStacker/packs/ under your servers plugins folder.
To define a pack, create a file with the extension .pack under the packs folder. (i.e example.pack)
Pack files follow yaml syntax. See below for an example .pack file.
name: "MvndiPack"
url: "https://github.com/HydrolienF/MvndiPack/releases/download/1.20.6.425/MvndiPack.zip"
hash: "D64DCFA57B5A94383FA39F32BE3B6D38D853304C"
priority: 0
required: true
prompt: "Hello <rainbow>world</rainbow>."
load_on_join: true
Required Pack Options
name The name of the pack. No two packs can have the same name. Pack names MUST be unique.
url The url to the pack. This url must be a direct download link. Typically, these links end in the file format .zip.
hash The SHA1 hash of the pack. You can obtain this by running certutil -hashfile "filename.exe" SHA1 on Windows.
Optional Pack Options
priority A number value corresponding to which order this pack will manifest. A lower number means the pack will be on a "lower" level on the client. Default: 0 (no priority)
required Whether or not to kick the client if the player refuses the pack. Default: false
prompt A MiniMessage compatible string that users will be prompted with when a pack is requested to the client. Default: no prompt (null)
load_on_join Whether or not to prompt the user this pack on join. Default: false
Commands
/pack The core PackStacker command.
/pack list Shows the user running this command the available resource packs.
/pack load <packName> Loads the specified resource pack on the player running this command. Permission: pack.load.self
/pack load <packName> <username> Loads a resource pack on the specified online player. Permission: pack.load.others
/pack unload <packName> Unloads the specified resource pack on the player running this command. Permission: pack.unload.self
/pack unload <packName> <username> Unloads a resource pack on the specified online player. Permission: pack.unload.others
/pack reload <messages | packs | all> Reloads the specified directory of PackStacker. Permissions: pack.reload.messages | pack.reload.packs | pack.reload.all
License
PackStacker is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE.
评论 0
登录后参与评分
还没有评论,来抢沙发吧