Did you ever want to force players to use a certain server resourcepack on one of your servers? Maybe for a minigame as part of your network? Or maybe you don't want to force the pack on the users but just want to inform the ones who do not accepted it about what they are missing out? Then this is the plugin you've been searching for!
Force Resourcepacks is the enhanced version of my Bungee Resourcepacks and World Resourcepacks plugins. In addition to being able to set different resourcepacks per world, server or on your whole proxy network (if installed in Bungee's or Velocity's plugin folder) you can also react on whether the user accepted downloading the pack and send them a message or even kick them if they did not do that! It even notices when a Spigot server behind a proxy sends a resourcepack and applies the server's pack status rules on it! That way it is compatible with minigames plugins that manage their own server resourcepacks while still providing the ability to kick a user from the game's server when they did not download the pack!
Kick players or prevent them from joining servers/worlds if they don't accept the pack!
Display a custom message on the prompt screen for clients above 1.17 and use the required-pack functionality.
Send multiple packs to a player on 1.20.3 or later!
Set different server resourcepacks per world, server or whole BungeeCord/Velocity network
Match server/world names with regex!
Only send resource packs if they really are necessary. (E.g. you can configure your lobby to not have a pack and only send packs once the player joins one of your minigames servers)
Per-version packs! Send the correct pack depending on the client's version and kick player if he uses a version without an available pack (requires ViaVersion or ProtocolSupport when used on a Spigot server and not Bungee or Velocity!)
Automatically exclude Geyser/Floodgate players (does not work with Geyser standalone without Floodgate)
Automatically generates the sha1 hashes!
Set packs via WorldGuard flags (requires WorldGuard above version 6.1.3)
Override xray texture packs (e.g. with a pack like this, please note that this isn't 100% reliable and could be bypassed using mods)
Language system with messages depending on the locale of the client
Configurable delay before sending the pack to a player
Inform the user which pack the server send them if it was done automatically
Let users select a pack themselves. The pack can be re-applied on each login and will be used for resets on servers that don't have the pack
Remembers which pack a user has currently applied and doesn't resend the same pack when switching server in a proxy network (does not work on 1.20.2 clients du to changes in the Minecraft client and how Minecraft proxies work. Fixed with 1.20.3+)
Kick players from the server which don't accept the resourcepack or send them to a specific server (that way you can have two versions of the same server, one with resourcepacks and one without)
Execute commands based on whether or not the player accepted the pack
Send a message or title to the player when he accepts, loads, denies or fails to download the resourcepack
Load screen ESC bypass protection with a timeout
Stop the user from joining a certain server in your network if he didn't accepted a resourcepack before
Different set of actions for when it is the first time a player joins your server
This plugin is currently compatible with BungeeCord 1.8 and above, Velocity version 3.3.0 b399, Spigot 1.8.8+ and clients 1.8 and above. Velocity support is experimental so please report any issues! I generally try to keep backwards compatibility but sometimes it's not possible and you might need to install an older plugin version in order for it to work. (e.g. Spigot 1.12.2 might need a plugin version below 1.7.22) If you notice an error and believe that it should still work then please contact me and I'll see if I can fix it.
Please also note that the Vanilla Minecraft client only applies server resource packs that are smaller than 100 MiB! (50MiB before 1.15, 250MiB starting in 1.18)
Also clients before 1.17 cannot use certain new SSL certificates for URLs (like Let's Encrypt) as they shipped with an old Java version (Java 1.8.0_51, a bug report regarding that was filed with Mojang which was fixed with the 1.17 release with Java 16) so you'll have to either use a different certificate or a non encrypted download (not recommended!)
The server is not able to detect client resource packs so this plugin only works with server resource packs!
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! Similar issues might also arise if plugins change Bungee internals in unsupportable ways. Currently the only plugin known to cause this issue is SKungee. Unfortunately the only way around it (besides SKungee fixing the issue) would be to either uninstall SKungee or install Force Resourcepacks on the Spigot server instead of on the Bungee.
See the
wiki page for all commands. All commands and functions also have
permissions that are listed on the
documentation page!
Config
You can find the default configs for running the plugin on Bungee and Bukkit on gist! They are slightly different, read this update note for information on how the Bukkit config differs from the Bungee one or just take a look at the default configs linked previously.
How to get the resource pack's sha1 file check sum via terminal/console:
Linux:sha1sum /path/to/file.zip Windows:FCIV -sha1 path\to\file.zip Mac OS:shasum /path/to/file.zip (Please note that the path has to be on the local system, not the download url!)
(Plugin versions above 1.6.5 will try to generate the sha1 hashes automatically and include a /frp generatehashes command!)
About the client freeze
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. There's not a lot I can do about that offer than advice people to put pressure on Mojang to improve that behaviour.
1.14 and 1.15 and then 1.20.3 again made some major improvements there so suggest players to use these over old versions if they have issues with your server resourcepack!
External Requests
This plugin makes certain web requests to external servers which might disclose some information about your machine, your game server and the plugin usage. You can opt out of all requests and none of those requests will download any executable data!
It submits
metrics to
bStats.org as well as my own servers. You can opt-out by changing the config option
disable-metrics in the plugin's config.yml or in the plugins/bStats/config.yml file!
It also includes an
update checker to provide you with information regarding new versions in the console/log or ingame when you have op/the update checker permissions. That checker can be disabled with the setting
update-check.
Alternative Payment Methods
If you for some reason cannot pay with PayPal then I also accept automatic payments with
BTC, ETH, XMR, LTC or DOGE (Other crypto currencies might be supported
manually) Please note that the resource is still distributed through SpigotMC.org in that case and that you will need an account with this page.
Other, non-crypto payment methods can not be supported by me at the moment.
Terms
This plugin is free software (as in freedom, not beer) licensed under GPLv3. By downloading this resource through SpigotMC.org you are gaining the rights stated in the
license. E.g. you can receive the source code either in form of GitHub or
GitLab repo access, a manual download or a physical copy (if shipping is paid).
Contact me for that.
You are not allowed to distribute this plugin in any form to anyone who has not obtained the right to use the plugin themselves unless you follow the terms described in the previously mentioned license. All of the rights given to you can be revoked at any time by the author in the case that the terms were violated as outlined in the license.
By downloading you accept the previous terms, license and that this resource is distributed without any (not even implied) warranty or liability by the author. If applicable in your jurisdiction you also waive your rights to return this digital good by downloading it.
Purchases are not subject to VAT according to §19 (1) of the German UStG.
This product is not affiliated with Mojang or Microsoft nor does it use copyrighted material of the game "Minecraft" unless under the assumption of Fair Use. (Screenshots/Videos)
Due to this being a digital good most jurisdictions will not grant you any kind of rights for refunds once you have downloaded and used the software (as I am based in the EU I use the
EU return laws as a basis of my views), so for refunds of copies of this plugin which don't match up with digital goods return laws I will offer you the following voluntary refund policy:
If for some reason you are not happy with the purchase of this resource after testing it then you can request a refund in the first two weeks after the purchase was made. Please do not continue using the plugin once you have made the request, doing so will invalidate the refund request. You should also include a reason for the refund request. This can be done via a
private message.
If you have issues getting certain features to work then I would appreciate it if you contacted me and asked about it first though before requesting a refund! I am more than willing to provide personal support or even write new functionality if you are running into issues in your use case.
Please note that once refunded you will loose access to future updates and support. Also I would ask you to not continue using the plugin and that you delete all copies of it in your possession. While this isn't enforceable via technological means I would greatly appreciate it.
If you have any issues or questions about this resource that the documentation doesn't already answer feel free to contact me any time! The best way is via the issue tracker, the discussion thread to this resource, or the Discord channel. If you have private information to share then feel free to send a private message.
I should always be able to get back to you with an answer in less then 12 hours ‒ during East Coast working hours it can even be under 1 hour! My other Resources