ForcePack
ForcePack copied to clipboard
Really live reloading
User case: We utilize S3 storage to store our resource pack. This pack is loaded from our CI/CD pipelines, ensuring that any changes on the servers (such as Velocity) are ignored.
What if? ForcePack automatically check headers of the http request, for example: HEAD https://eu.amazonaws.com/textures/test.zip Response Header is:
Name | Value |
---|---|
Date | Sat, 02 Mar 2024 07:17:37 GMT |
Last-Modified | Sat, 02 Mar 2024 07:17:37 GMT |
The plugin can dynamically check these parameters and manage the update hash accordingly. I'm not referring to the /vforcepack reload
command, as it can lead to a subpar user experience. (The user forcibly receives the resourcepack)
Instead, the plugin updates the hash automatically, ensuring that the player receives the updated resource pack during the next loading process. This streamlined approach enhances user experience by eliminating the need for manual intervention.