discordscreenmaster-1.16.5-1.0.1.jar
Curse Maven Snippet
What's new
- **Twelve builds for popular versions.** Separate jars for 1.16.5, 1.18.2, 1.19.2, 1.20.1, 1.20.4, 1.21.1, 1.21.4, 1.21.8, 1.21.11, 26.1, 26.2 and 26.3. Same mod code, different adaptations to the game API.
- **ViaVersion compatible.** The mod protocol is identical in every build: channels `discordscreenmaster:screenshot_chunk` and `discordscreenmaster:session_token`, the same field order. Clients and servers on different supported versions interoperate through ViaVersion / ViaBackwards / ViaFabric.
- **Chunked screenshot transfer.** Screenshots are sent in 30 KB chunks and assembled in memory on the server (up to 4 MiB). The vanilla packet size limit no longer blocks large screenshots.
- **Removed non-functional settings.** `maxFileSizeMb`, `opsBypassSize`, `opsBypassCooldown` and `deleteAfterSend` are gone — they had no effect. Existing configs keep working: unknown keys are ignored and dropped on the next save.
- **The cooldown actually works now.** `cooldownSeconds` is enforced server-side for everyone (60 seconds by default, `0` disables it). Operator bypasses were removed.
- **Server-side validation.** Only JPEG up to 4 MiB is accepted; images are checked by signature, not by file extension.
- **Queue limit.** One pending screenshot per player. The queue is cleared on disconnect and after a 5-minute TTL.
- **Hardened session tokens.** Constant-time comparison (`MessageDigest.isEqual`), length checks and a size cap in the packet.
- **Safe file names.** Names from the packet are stripped of section codes, line breaks and path separators before being shown in chat or sent to Discord.
- **Graceful invalid-token handling.** The server no longer disconnects the player; it reissues a token and asks to retry.
- **No oversized uploads from the client.** If a screenshot exceeds the limit, the client recompresses it before sending.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects

