用爱(还有啤酒)在德国制造
_你是否曾想过为每个世界设置不同的服务器资源包?或者只想通过一条命令就切换当前的资源包?那你来对地方了!
_
此插件允许你为每个世界或整个服务器设置一个服务器资源包!它还允许你指定可在多个世界中使用的资源包!
它还与我的 Bungee Resourcepacks 和 Velocity Resourcepacks 插件兼容,如果资源包已通过 Bungee/Velocity Resourcepacks 在另一个服务器上应用过,则在切换服务器时不会让玩家重新下载资源包!
请在报告问题之前检查是否有更新的开发构建!
请注意,Vanilla Minecraft 客户端仅应用小于 250MiB 的服务器资源包!(1.15 之前为 50MiB,1.18 之前为 100MiB)
此外,某些新的 URL SSL 证书(例如 Let's Encrypt)与 Minecraft 随附的旧 Java 版本(Java 1.8.0_51)不兼容(已向 Mojang 提交关于此问题的错误报告),因此你必须使用其他证书或非加密下载(不推荐!)
注意: 此插件不适用于不支持服务器资源包的 1.8 以上较旧的 Minecraft 版本!
功能
- 按世界或整个服务器设置不同的服务器资源包
- 使用正则表达式匹配世界名称!
- 在游戏内配置插件的命令
- 根据客户端区域设置显示不同消息的语言系统
- 简化的 compoment/json 消息格式化语法(MineDown)
- 发送资源包给玩家前可配置的延迟时间
- 记住用户当前已应用的资源包,并在切换世界时不重新发送
- 让用户自行设置资源包。每次登录时可重新应用该资源包,并将在没有该资源包的服务器上重置时使用
- 如果由服务器自动发送,则告知用户服务器向其发送的资源包
- ResourcePackSendEvent 和 ResourcePackSelectEvent 供开发者在其插件中响应资源包的发送或选择
- 根据客户端版本发送正确的资源包格式(需要 ViaVersion 或 ProtocolSupport),通过版本号、协议号或资源包格式 ID 提供 pack-variants。
- 自动生成 sha1 哈希值!
- 兼容 AuthMe Reloaded、OpenLogin、NLogin、LibrePremium、JPremium。
需要它与更多插件兼容吗?联系我!
统计信息
命令
执行所有 /wrp 命令你需要 worldresourcepacks.command 权限!
/wrp reload [resend] - worldresourcepacks.command.reload - 重新加载配置文件;如果第二个参数为 "resend",则向所有在线玩家重新发送资源包
/wrp version - worldresourcepacks.command.version - 显示此插件的版本
/wrp generatehashes - worldresourcepacks.command.generatehashes - 手动生成资源包哈希值
/wrp addpack <name> <url> - worldresourcepacks.command.addpack - 添加新资源包
/wrp pack <pack> - worldresourcepacks.command.pack - 查看和编辑现有资源包
/wrp listassignments - worldresourcepacks.command.listassignments - 查看所有世界分配情况
/wrp deleteassignment <assignment> - worldresourcepacks.command.deleteassignment - 删除世界分配
/wrp assignment <assignment> - worldresourcepacks.command.assignment - 查看和编辑世界分配
/wrp globalassignment - worldresourcepacks.command.globalassignment - 查看和编辑全局分配
/resetpack [<playername>] [<temp>] - worldresourcepacks.command.resetpack - 将资源包(玩家的)重置为空资源包或存储的资源包。(就像加入没有任何资源包的服务器时会发生的情况一样)如果 <temp> 设置为 false,则也会重置玩家存储的资源包。
执行所有 /usepack 命令你需要 worldresourcepacks.command.usepack 权限!
为其他玩家执行时需要 worldresourcepacks.command.usepack.others 权限!
要访问特定资源包,玩家需要 worldresourcepacks.pack.<packname> 权限,或者在配置部分中为该资源包定义的权限!
/usepack - 列出你可用的所有资源包
/usepack <packname> [<playername>] - 向你自己或其他玩家发送特定资源包
配置
config.yml 允许你配置通过命令可以设置的所有内容以及更多内容,请查看 GitHub 上的文件 中的命令以了解所有选项的解释!(某些选项可能仅在最新开发构建中可用!
关于客户端冻结
从 1.20.3 开始,这应该不再是个问题!
当服务器资源包发送给客户端时,在下载完成后会短暂冻结。(与手动应用本地资源包的情况相同)这是因为客户端需要重新加载所有资源、检查哪些资源存在重叠,并对它们进行一些其他计算和处理(例如将所有纹理拼接成一张图像,就像在最初的纹理包格式中那样)。这并不是下载问题,因为客户端会在本地缓存资源包文件,如果文件的哈希值没有变化,则不会重新下载。
通常情况下,这个过程所需的时间取决于 PC 的性能以及玩家已应用的所有资源包中使用的纹理大小(高清资源包耗时更长)。(因此,即使服务器资源包不包含任何高清纹理或根本不包含纹理,客户端仍会完全重新加载所有本地应用的资源包)这是需要由 Mojang 在客户端层面修复的问题,例如通过仅重新加载发生更改的资源来解决。
1.14、1.15 和 1.16 在这方面有重大改进,而 1.20.3 基本上彻底解决了该问题!如果您遇到服务器资源包相关问题,建议玩家使用这些版本!
开发资源
源代码可在 GitHub 获取,并根据 GPLv3 许可证发布。
开发构建版本可以在 Minebench.de 的 Jenkins 上找到。
如果您打算基于我的项目开发插件,还可以参考 Javadocs。
支持
您可以通过 SpigotMC 上的资源讨论帖、GitHub Issue 追踪器、我的 IRC 频道 或 我的 Discord 获得支持。
指标数据
此资源包含了 bstats.org 指标数据。如果您不希望 bStats 收集您服务器的信息,可以在 bStats/config.yml 文件中禁用它。所使用的 bStats-lite 类的许可证信息可在此处查看 here。
本资源由作者按“原样”分发,不提供任何担保或责任。了解更多请参见 此处
Made in Germany with love (and beer)
_Did you ever want to set a different server resource pack for your each of your worlds? Or switch your current resource pack with just one command? Then you came to the right place!
_
This plugin lets you set one Server Resource Pack for each of your worlds or event your whole server! It also allows you to specify packs that should be usable on multiple worlds!
It is also compatible with my Bungee Resourcepacks and Velocity Resourcepacks plugin and will not make the player redownload a resource pack after server switching if it got already applied by Bungee/Velocity Resourcepacks on another server!
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 does not work with older Minecraft versions above 1.8 that do not support server resourcepacks!
Features
- Set different server resourcepacks per world or whole server
- Match world 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 world switch
- 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 (requires ViaVersion or ProtocolSupport) 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 /wrp command you need the worldresourcepacks.command permission!
/wrp reload [resend] - worldresourcepacks.command.reload - Reloads the config file; resends the packs to every online player if the 2nd argument is "resend"
/wrp version - worldresourcepacks.command.version - Shows the version of this plugin
/wrp generatehashes - worldresourcepacks.command.generatehashes - Manually generate the resource pack hashes
/wrp addpack <name> <url> - worldresourcepacks.command.addpack - Add a new pack
/wrp pack <pack> - worldresourcepacks.command.pack - View and edit an existing pack
/wrp listassignments - worldresourcepacks.command.listassignments - View all world assignments
/wrp deleteassignment <assignment> - worldresourcepacks.command.deleteassignment - Delete a world assignment
/wrp assignment <assignment> - worldresourcepacks.command.assignment - View and edit a world assignment
/wrp globalassignment - worldresourcepacks.command.globalassignment - View and edit the global assignment
/resetpack [<playername>] [<temp>] - worldresourcepacks.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 worldresourcepacks.command.usepack permission!
To execute it for other players you need worldresourcepacks.command.usepack.others!
To have access to a specific pack a player needs the worldresourcepacks.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
登录后参与评分
还没有评论,来抢沙发吧