Fisch37 / better-server-packs-fabric

Fabric rewrite of BetterServerPacks https://github.com/Fisch37/better-server-resourcepack
MIT License
1 stars 1 forks source link

Better Server Packs (Fabric)

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.

What is wrong with Server Resourcepacks?

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.)

How does BSP solve this?

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.

Commands

* 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.