CustomPacks – Spigot/Paper 的动态资源包管理器
CustomPacks 是一款轻量且灵活的 Minecraft 插件,允许服务器管理员和玩家无缝管理多个资源包。它会自动将选定的资源包合并为单个下载文件,并支持跨登录会话持久保留玩家的资源包选择。
本插件旨在通过增加多种选择来改进服务器的资源包逻辑。与其他项目(如 ResourcePackManager)不同——后者旨在为服务器上的所有玩家合并成一个资源包——CustomPacks 为每位玩家提供选择权:每个人都可以从共享池中启用自己的一组服务器资源包,从而实现个性化配置。
主要功能
-
多资源包支持:可同时启用多个自定义资源包,而不会覆盖之前的选择。
-
持久化资源包选择:玩家选择的资源包会保存在 YAML 文件中,并在重新登录时自动重新应用。每位玩家都可以拥有自己的资源包组合!
-
动态合并:当玩家加入服务器或更新其选择时,资源包会实时进行合并。无需重复复制文件。
-
临时存储:合并后的资源包仅临时存储,并在玩家登出后删除以节省磁盘空间。
-
HTTP 分发:使用内置 HTTP 服务器高效地向玩家分发合并后的资源包。
命令:
-
/custompacks:packlist – 显示可用的资源包以及你已启用的资源包。
-
/custompacks:packenable <pack1> [pack2…] – 启用一个或多个资源包。
-
/custompacks:packdisable [pack] – 禁用特定资源包或所有资源包。
安装方法
- 将
CustomPacks.jar 放入服务器的 plugins 文件夹中,然后重启服务器以生成所有必要文件。
- 编辑
config.yml(设置 HTTP 服务器端口及 Oraxen 资源包路径)。
- 重启服务器。
- 将所有希望玩家从中选择的资源包放入
CustomPacks/packs 文件夹。
要求
已在 1.21.7 版本上测试并确认可用,理论上应兼容大多数 1.17–1.20 版本。
兼容性说明:
Oraxen - 技术上兼容,但你需要在 Oraxen 的配置中禁用向玩家发送资源包的功能(注意:不是禁用资源包生成功能,而是禁用分发功能!)。CustomPacks 会搜索 Oraxen 文件夹中的 pack.zip 并自动将其添加到任何玩家的资源包列表中。
其他所有与服务器资源包相关的插件可能会因与加入服务器时的资源包加载优先级冲突而无法正常工作。
CustomPacks – Dynamic Resource Pack Manager for Spigot/Paper
CustomPacks is a lightweight and flexible Minecraft plugin that lets server owners and players manage multiple resource packs seamlessly. It automatically merges selected resource packs into a single download and supports persistent pack selection across logins.
This plugin aims to improve server resourcepack logic by adding to it a variety of choice. Unlike other projects, like ResourcePackManager, which aim to merge several packs into one for ALL players on server, CustomPacks offer EACH player a choice - all can have different sets of server resourcepacks enabled for themselves, selectable from shared pool.
Key Features
-
Multiple Pack Support: Enable multiple custom packs simultaneously, without overwriting previous selections.
-
Persistent Pack Selection: Players’ selected packs are saved in a YAML file and automatically reapplied on login. Each player can have his own pack set!
-
Dynamic Merging: Packs are merged on-the-fly when a player joins or updates their selection. No unnecessary duplication of files.
-
Temporary Storage: Merged packs are stored temporarily and deleted on player logout to save disk space.
-
HTTP Delivery: Uses an internal HTTP server to deliver merged resource packs efficiently to players.
Commands:
-
/custompacks:packlist – Show available packs and your enabled packs.
-
/custompacks:packenable <pack1> [pack2…] – Enable one or more packs.
-
/custompacks:packdisable [pack] – Disable a specific pack or all packs.
Installation
- Place CustomPacks.jar into your server’s plugins folder and restart the server to let it create all nescesary files.
- Edit config.yml (set the HTTP server port and Oraxen pack path).
- Restart the server.
- Place all packs you want players to choose from into CustomPacks/packs folder
Requirements
Tested and confirmed to work on 1.21.7 but theoretically should work on most 1.17–1.20 versions.
Compatibility:
Oraxen - technically compatible, but you will need to disable Oraxen pack sending to players in it's config (NOT the pack generation, just delivery!). CustomPacks will search Oraxen folder for pack.zip and auto-add it to any player's list.
All other server resourcepack-related plugins will probably break due to clashing with priority onJoin pack load.
评论 0
登录后参与评分
还没有评论,来抢沙发吧