Tixx b7cf304d49
Client resource hash database and client resource protection (#430)
# Mod database
This PR adds a local database of mods, which is used to cache mod hashes
and protection status.

## Mod hash caching
Mod hashes will now be cached based on last write date. This will speed
up server startup because only the mods with changes will have to be
hashed.

## Mod protection
You can now protect mods! This will allow you to host a server with
copyrighted content without actually hosting the copyrighted content.
Just run `protectmod <filename with .zip> <true/false>` in the console
to protect a mod. Users that join a server with protected mods will have
to obtain the file themselves and put it in their launcher's resources
folder. The launcher will inform the user about this if the file is
missing.

## Mod reloading
You can now reload client mods while the server is running by using
`reloadmods` in the console. Keep in mind that this is mainly intended
for development, therefore it will **not** force client to rejoin and
neither will is hot-reload mods on the client.

---

By creating this pull request, I understand that code that is AI
generated or otherwise automatically generated may be rejected without
further discussion.
I declare that I fully understand all code I pushed into this PR, and
wrote all this code myself and own the rights to this code.
2025-05-11 01:32:19 +02:00
..
2024-01-23 21:00:11 +01:00
2024-01-23 21:00:11 +01:00
2024-06-26 14:06:06 +02:00
2024-09-29 01:15:48 +02:00
2025-05-05 23:53:17 +02:00
2024-01-23 21:00:11 +01:00
2024-01-23 21:00:11 +01:00
2024-05-15 12:54:50 +02:00
2024-01-23 21:00:11 +01:00
2024-01-23 21:00:11 +01:00
2025-01-11 22:18:50 +01:00
2024-01-23 21:00:11 +01:00
2024-06-26 14:06:06 +02:00
2024-10-05 16:07:27 +02:00
2025-01-11 22:18:19 +01:00
2024-06-26 14:06:06 +02:00
2025-03-15 20:45:48 +01:00
2024-01-23 21:00:11 +01:00
2024-05-15 12:57:08 +02:00
2024-05-21 13:40:33 +02:00
2024-01-23 21:00:11 +01:00
2024-01-23 21:00:11 +01:00
2024-06-26 14:06:06 +02:00
2025-04-01 09:43:49 +02:00
2024-01-23 21:00:11 +01:00
2024-01-23 21:00:11 +01:00
2024-01-23 21:00:11 +01:00