Easily manage server-side resourcepacks without having to restart the server!
Better Server Packs is a server-side mod that replaces the old server-resourcepack
logic to allow changing and updating the server resourcepack while the server is running.
The issue Server Resourcepacks face currently is that all config about them
(including the hash) is stored in the server.properties file. Although hashes
are technically optional for servers, not using one will cause all sorts of
weirdness when updating the resourcepack resulting in packs not updating on the client.
Using a hash on the other hand, requires a server restart for every update of the
resourcepack and hashes are also a pain to compute.
(Often tools will generate incorrect hashes for a file.)
BSP adds the new /pack command to your server that allows operators
to update the server resourcepack or push an update out to every user.
/pack set [<url>] [push]push argument, all online/pack reload [push]/pack push [<players>]/pack required [true|false]/pack required will show the current/pack prompt [<prompt>|clear]/pack info* Setting required to true cannot guarantee that players actually use the resourcepack. Modified clients can circumvent this option
This project is a rewrite of BetterServerPacks for 1.21 Fabric servers.
I would also like to thank Max Henkel for developing the awesome config-builder
library and allowing me to use it. There really aren't enough libraries for server-side configuration for Minecraft mods.