德国制造,充满爱意(还有啤酒)
你是否曾想过为你的整个 Velocity 网络设置一个统一的服务器资源包?或者想为 Velocity 代理后面的几个不同服务器分别设置不同的资源包,却因玩家在切换服务器时 Minecraft 反复重新下载同一个包而感到厌烦?那么你来对地方了!
此插件允许你在整个 Velocity 中设置一个统一的服务器资源包,而无需在大厅服务器上单独设置,否则会导致客户端即使已经启用了该包也再次重新下载!
它还支持为每个服务器单独设置资源包,并能检测到 Velocity 后方的服务器是否发送了自己的资源包。如果玩家切换到另一个服务器,它会将资源包重置为全局或该服务器的默认包!
如果你使用的是 BungeeCord 代理,可以使用我的 Bungee Resourcepacks 插件;如果你在寻找 Spigot/Paper 版本,可以使用 World Resourcepacks。后者允许按世界设置资源包,并且与本插件兼容。
报告问题前,请先检查是否有更新的开发构建版!
请注意,原版 Minecraft 客户端仅应用小于 250MiB 的服务器资源包!(1.15 之前为 50MiB,1.18 之前为 100MiB)
此外,某些新的 URL SSL 证书(如 Let's Encrypt)与 Minecraft 自带的旧 Java 版本(Java 1.8.0_51)不兼容(已向 Mojang 提交相关错误报告),因此你必须使用其他证书或使用非加密下载链接(不推荐!)
注意: 此插件仅在客户端版本高于 1.8 时有效!
功能
- 为每个服务器或整个 Velocity 网络设置不同的服务器资源包
- 支持多资源包(1.20.3+)
- 在玩家加入服务器之前发送资源包(1.20.3+)
- 支持使用正则表达式匹配服务器名称!
- 提供在游戏内配置插件的命令
- 基于客户端语言环境的消息系统
- 简化的组件/JSON 消息格式化语法(MineDown)
- 可配置向玩家发送资源包前的延迟时间
- 记住用户当前已应用的资源包,并在切换服务器时不再重复发送(1.20.2 存在此问题,1.20.3+ 已修复)
- 允许用户自行设置资源包。每次登录时可重新应用该包,并在切换到没有该包的服务器时用于重置
- 如果资源包是自动发送的,告知用户服务器向其发送的是哪个包
- 提供 ResourcePackSendEvent 和 ResourcePackSelectEvent 供开发者在自己的插件中对资源包的发送或选择做出响应
- 根据客户端版本,通过 pack-variants 使用版本号、协议号或包格式 ID 发送正确的包格式
- 自动生成 sha1 哈希值!
- 兼容 AuthMe Reloaded、AuthMeVelocity、OpenLogin、NLogin、LibrePremium、JPremium。
需要兼容更多插件吗?联系我!
命令
执行所有 /vrp 命令需要 velocityresourcepacks.command 权限!
/vrp reload [resend] - velocityresourcepacks.command.reload - 重载配置文件;如果第二个参数为 "resend",则向所有在线玩家重新发送资源包
/vrp version - velocityresourcepacks.command.version - 显示此插件的版本
/vrp generatehashes - velocityresourcepacks.command.generatehashes - 手动生成资源包哈希值
/vrp addpack <name> <url> - velocityresourcepacks.command.addpack - 添加一个新的资源包
/vrp pack <pack> - velocityresourcepacks.command.pack - 查看并编辑现有资源包
/vrp listassignments - velocityresourcepacks.command.listassignments - 查看所有服务器分配情况
/vrp deleteassignment <assignment> - velocityresourcepacks.command.deleteassignment - 删除服务器分配
/vrp assignment <assignment> - velocityresourcepacks.command.assignment - 查看并编辑服务器分配
/vrp globalassignment - velocityresourcepacks.command.globalassignment - 查看并编辑全局分配
/resetpack [<playername>] [<temp>] - velocityresourcepacks.command.resetpack - 将资源包(玩家的)重置为空包或存储的包。(就像加入一个没有任何包的服务器一样)如果 <temp> 设置为 false,也会重置玩家存储的资源包。
执行所有 /usepack 命令需要 velocityresourcepacks.command.usepack 权限!
若要为其他玩家执行,需要 velocityresourcepacks.command.usepack.others 权限!
要访问特定资源包,玩家需要拥有 velocityresourcepacks.pack.<packname> 权限,或在配置部分为该包定义的权限!
/usepack - 列出你可用的所有资源包
/usepack <packname> [<playername>] - 向你自己或其他玩家发送特定资源包
配置
config.yml 允许你配置所有可以通过命令设置的选项,以及更多其他功能。请查看 GitHub 上的文件 以了解所有选项的说明!(某些选项可能仅在 最新的开发构建版本 中可用!
关于客户端冻结
从 1.20.3 版本开始,这应该不再是问题了!
当服务器资源包发送给客户端时,在下载完成后客户端会短暂冻结。(这与手动应用本地资源包的情况相同)这是因为客户端必须重新加载所有资源、检查哪些资源存在重叠,并对它们进行一些其他的计算和处理。(例如将所有纹理拼接成一张单一的图片,就像最初的纹理包格式那样)这不是下载问题,因为客户端会在本地缓存资源包文件,如果它们的哈希值没有变化就不会重新下载。
这个过程通常取决于电脑的性能以及玩家所应用的所有资源包中使用的纹理大小(高清包需要更长时间)。(因此,即使服务器资源包不包含任何高清纹理或根本没有任何纹理,客户端仍会完全重新加载所有本地应用的资源包)这是需要通过客户端修复的问题,比如由 Mojang 负责只重新加载发生变化的资源。
1.14、1.15 和 1.16 在这方面有了重大改进,而 1.20.3 基本上解决了这个问题,所以如果玩家在你的服务器资源包上遇到问题,建议他们使用这些版本!
开发资源
源代码可在 GitHub 获取,并根据 GPLv3 许可协议授权。
开发构建版本可以在 Minebench.de 的 Jenkins 找到。
如果你打算基于我的项目开发插件,还可以参考一些 Javadocs。
支持
你可以在 PaperMC 的资源讨论帖、GitHub 问题追踪器、我的 IRC 频道 或 我的 Discord 获得支持。
此资源由作者提供,不附带任何担保或责任。点击这里了解更多详情。
Made in Germany with love (and beer)
Did you ever want to set one Server Resource Pack for your whole Velocity network? Or set a different pack for a couple of your servers behind your Velocity proxy and got annoyed by Minecraft re-downloading the same pack while switching servers? Then you came to the right place!
This plugin lets you set one Server Resource Pack for you whole Velocity without the need to set them on your lobby server which would result in the client re-downloading the pack even when it already had it enabled!
It also has the ability to set the pack for each server individually and it even detects if the server behind the Velocity has send a pack itself and resets the pack to the global or server's pack if the player switches to another server!
You can use my Bungee Resourcepacks plugin if you use the BungeeCord proxy and World Resourcepacks if you are looking for a Spigot/Paper version. It lets you set the pack per world and is compatible with this one.
Please check if there are newer development builds before reporting issues!
Please note that the Vanilla Minecraft client only applies server resource packs that are smaller than 250MiB! (50MiB before 1.15, 100MiB before in 1.18)
Also certain new SSL certificates for URLs (like Let's Encrypt) do not work with the old Java version shipped with Minecraft (Java 1.8.0_51, a bug report regarding that has been filed with Mojang) so you'll have to either use a different certificate or a non encrypted download (not recommended!)
Note: This plugin only works on clients with versions above 1.8!
Features
- Set different server resourcepacks per server or whole Velocity network
- Multiple pack support (on 1.20.3+)
- Sending the pack before the player joins the server (on 1.20.3+)
- Match server names with regex!
- Commands to configure the plugin ingame
- Language system with messages depending on the locale of the client
- Simplified compoment/json message formatting syntax (MineDown)
- Configurable delay before sending the pack to a player
- Remembers which pack a user has currently applied and doesn't resend on server switch (broken on 1.20.2, 1.20.3+ has that fixed)
- Let the user set the pack himself. The pack can be re-applied on each login and will be used for resets on servers that don't have the pack
- Inform the user which pack the server send them if it was done automatically
- ResourcePackSendEvent and ResourcePackSelectEvent for developers to react on the sending or selecting of a pack in their own plugins
- Send the correct pack format depending on the client's version with pack-variants either via the version, protocol number or pack format id.
- Automatically generates the sha1 hashes!
- Compatible with AuthMe Reloaded, AuthMeVelocity, OpenLogin, NLogin, LibrePremium, JPremium.
Do you need it to be compatible with more plugins? Contact me!
Commands
To execute every /vrp command you need the velocityresourcepacks.command permission!
/vrp reload [resend] - velocityresourcepacks.command.reload - Reloads the config file; resends the packs to every online player if the 2nd argument is "resend"
/vrp version - velocityresourcepacks.command.version - Shows the version of this plugin
/vrp generatehashes - velocityresourcepacks.command.generatehashes - Manually generate the resource pack hashes
/vrp addpack <name> <url> - velocityresourcepacks.command.addpack - Add a new pack
/vrp pack <pack> - velocityresourcepacks.command.pack - View and edit an existing pack
/vrp listassignments - velocityresourcepacks.command.listassignments - View all server assignments
/vrp deleteassignment <assignment> - velocityresourcepacks.command.deleteassignment - Delete a server assignment
/vrp assignment <assignment> - velocityresourcepacks.command.assignment - View and edit a server assignment
/vrp globalassignment - velocityresourcepacks.command.globalassignment - View and edit the global assignment
/resetpack [<playername>] [<temp>] - velocityresourcepacks.command.resetpack - Reset the pack (of a player) to the empty one or the stored pack. (Like what would happen if you joined a server without any pack) If <temp> is set to false the stored pack of the player is reset too.
To execute every /usepack command you need the velocityresourcepacks.command.usepack permission!
To execute it for other players you need velocityresourcepacks.command.usepack.others!
To have access to a specific pack a player needs the velocityresourcepacks.pack.<packname> permission or the one defined for the pack in it's config section!
/usepack - List all packs available to you
/usepack <packname> [<playername>] - Send a specific pack to yourself or another player
Config
The config.yml allows you to configure everything you can do set up via the commands and a lot more, take a look at the commands in the file on GitHub for an explanation on all options! (Some might only be available on the latest development builds!
About the client freeze
This should no longer be an issue starting with 1.20.3!
When a server resource pack is send to a client it will shortly freeze after the download is complete. (Same as manually applying a local pack) This happens because the client has to reload all resources, check which resources overlap and do some other calculation and manipulation with them. (Like stitching all the textures together to a single image like they were in the first texture pack format) It's not a download issue as the client will locally cache the pack files and not re-download them if their hash didn't change.
How long this takes generally depends on the PC's performance and the size of the textures (HD packs take longer) that are used in all resource packs that the player has applied. (So even if the server resource pack doesn't contain any HD textures or textures at all the client will still completely reload all locally applied resource packs) This is something that has to be fixed in the client by Mojang for example by only reloading resources that changed.
1.14, 1.15 and 1.16 have some major improvements there and 1.20.3 basically fixed it all so suggest players to use these if they have issues with your server resourcepack!
Dev-Resources
The source is available on GitHub and licensed under the GPLv3.
Development builds can be found on the Minebench.de Jenkins.
There are also some Javadocs if you intend to develop plugins based on mine.
Support
You can receive support in the resource discussion thread on PaperMC, the GitHub issue tracker, my IRC channel, or my Discord.
This resource is distributed without any warranty or liability by the author. Read more about it here
评论 0
登录后参与评分
还没有评论,来抢沙发吧