德国制造,饱含爱意(还有 啤酒)
你是否曾想过为你的整个 BungeeCord 网络设置一个统一的服务器资源包?或者想为 Bungee 代理后面的几个不同服务器设置不同的资源包,却因 Minecraft 在切换服务器时重新下载相同的包而感到烦恼?那你来对地方了!
此插件允许你为整个 BungeeCord 网络设置一个统一的服务器资源包,而无需在大厅服务器上进行设置(这会导致客户端即使已经启用了该包,仍会重新下载它)。
它还支持为每个服务器单独设置资源包,并且能够检测 Bungee 后端的服务器是否发送了自己的资源包;如果玩家切换到另一个服务器,它会将资源包重置为全局或该服务器的指定包。
如果你使用的是 Velocity 代理,可以使用我的 Velocity Resourcepacks 插件;如果你在寻找 Spigot/Paper 版本,可以使用 World Resourcepacks。后者允许按世界设置资源包,并与本插件兼容。
请在报告问题之前检查是否有更新的 开发构建版!
请注意,Vanilla Minecraft 客户端仅应用小于 250MiB 的服务器资源包!(1.15 之前为 50MiB,1.18 之前为 100MiB)
此外,某些新的 URL SSL 证书(例如 Let's Encrypt)与 Minecraft 自带的旧 Java 版本(Java 1.8.0_51)不兼容(相关 bug 报告已提交至 Mojang),因此你必须使用其他证书或非加密下载链接(不推荐!)。
为了使本插件正常工作,它会挂钩到 Bungee 的内部代码中。如果 Bungee 更新改变了其内部结构,可能会导致问题。我会尽力保持插件正常运行(毕竟我自己也在用),但如果你认为在没有可用插件更新的情况下出现了故障,请尽快联系我!
注意: 此插件仅在 1.8 以上版本的客户端上生效!
功能特性
- 为单个服务器或整个 BungeeCord 网络设置不同的服务器资源包
- 支持多个资源包(1.20.3+)
- 使用正则表达式匹配服务器名称!
- 提供游戏内命令以配置插件
- 基于客户端区域设置的本地化消息系统
- 简化的组件/JSON 消息格式化语法(MineDown)
- 可配置向玩家发送资源包前的延迟时间
- 记住用户当前应用的资源包,并在切换服务器时不重复发送(1.20.2 中存在缺陷,1.20.3+ 已修复)
- 允许用户自行设置资源包。每次登录时可重新应用该包,并用于那些未设置包的服务器上的重置操作
- 如果是由服务器自动发送的,告知用户服务器向其发送的是哪个资源包
- 提供 ResourcePackSendEvent 和 ResourcePackSelectEvent,供开发者在自己的插件中对资源包的发送或选择做出响应
- 根据客户端版本,通过 pack-variants(版本号、协议号或资源包格式 ID)发送正确的资源包格式
- 自动生成 SHA1 哈希值!
- 兼容 AuthMe Reloaded、OpenLogin、NLogin、LibrePremium、JPremium。
需要兼容更多插件吗?请联系我!
统计信息
命令
执行所有 /brp 命令需要 bungeeresourcepacks.command 权限!
/brp reload [resend] - bungeeresourcepacks.command.reload - 重载配置文件;如果第二个参数为 "resend",则向所有在线玩家重新发送资源包
/brp version - bungeeresourcepacks.command.version - 显示此插件的版本
/brp generatehashes - bungeeresourcepacks.command.generatehashes - 手动生成资源包哈希值
/brp addpack <name> <url> - bungeeresourcepacks.command.addpack - 添加一个新的资源包
/brp pack <pack> - bungeeresourcepacks.command.pack - 查看和编辑现有的资源包
/brp listassignments - bungeeresourcepacks.command.listassignments - 查看所有服务器分配情况
/brp deleteassignment <assignment> - bungeeresourcepacks.command.deleteassignment - 删除服务器分配
/brp assignment <assignment> - bungeeresourcepacks.command.assignment - 查看和编辑服务器分配
/brp globalassignment - bungeeresourcepacks.command.globalassignment - 查看和编辑全局分配
/resetpack [<playername>] [<temp>] - bungeeresourcepacks.command.resetpack - 将资源包(某玩家的)重置为空包或存储的包。(就像加入一个没有任何包的服务器时会发生的情况一样)如果 <temp> 设置为 false,则也会重置该玩家存储的资源包。
执行所有 /usepack 命令需要 bungeeresourcepacks.command.usepack 权限!
如果要为其他玩家执行此命令,还需要 bungeeresourcepacks.command.usepack.others 权限!
要访问某个特定的资源包,玩家必须拥有 bungeeresourcepacks.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 可供参考。
支持
你可以在 SpigotMC 上的资源讨论帖、GitHub 问题追踪器、我的 IRC 频道 或 我的 Discord 获取支持。
指标数据
此资源包含 bstats.org 的指标数据。如果你不希望 bStats 收集你服务器的信息,可以在 bStats/config.yml 文件中禁用它。所使用的 bStats-lite 类的许可证可在 此处 找到。
本资源由作者分发,不提供任何担保或责任。更多信息请参阅 此处
Made in Germany with love (and beer)
Did you ever want to set one Server Resource Pack for your whole BungeeCord network? Or set a different pack for a couple of your servers behind your Bungee 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 BungeeCord 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 Bungee 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 Velocity Resourcepacks plugin if you use the Velocity 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!)
In order for this plugin to work it hooks into internal Bungee code, this might result in issues if there is a Bungee update which changes its internal structure. I will try to keep the plugin working as well as possible (I use it myself after all) but if you believe that something broke without a plugin update being available please contact me asap!
Note: This plugin only works on clients with versions above 1.8!
Features
- Set different server resourcepacks per server or whole BungeeCord network
- Multiple pack support (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, OpenLogin, NLogin, LibrePremium, JPremium.
Do you need it to be compatible with more plugins? Contact me!
Statistics
Commands
To execute every /brp command you need the bungeeresourcepacks.command permission!
/brp reload [resend] - bungeeresourcepacks.command.reload - Reloads the config file; resends the packs to every online player if the 2nd argument is "resend"
/brp version - bungeeresourcepacks.command.version - Shows the version of this plugin
/brp generatehashes - bungeeresourcepacks.command.generatehashes - Manually generate the resource pack hashes
/brp addpack <name> <url> - bungeeresourcepacks.command.addpack - Add a new pack
/brp pack <pack> - bungeeresourcepacks.command.pack - View and edit an existing pack
/brp listassignments - bungeeresourcepacks.command.listassignments - View all server assignments
/brp deleteassignment <assignment> - bungeeresourcepacks.command.deleteassignment - Delete a server assignment
/brp assignment <assignment> - bungeeresourcepacks.command.assignment - View and edit a server assignment
/brp globalassignment - bungeeresourcepacks.command.globalassignment - View and edit the global assignment
/resetpack [<playername>] [<temp>] - bungeeresourcepacks.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 bungeeresourcepacks.command.usepack permission!
To execute it for other players you need bungeeresourcepacks.command.usepack.others!
To have access to a specific pack a player needs the bungeeresourcepacks.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 SpigotMC, the GitHub issue tracker, my IRC channel, or my Discord.
Metrics
This resource includes bstats.org metrics. If you don't want bstats to collect info on your server then you can disable it in the bStats/config.yml file. The license the used bStats-lite class is under can be found here.
This resource is distributed without any warranty or liability by the author. Read more about it here
评论 0
登录后参与评分
还没有评论,来抢沙发吧