waitingscreenmod 1.0.1-Fabric-1.21.1
Список изменений
Major Features:
Whitelist integration: the mod now reads whitelist.json and automatically adjusts requiredPlayers to the number of whitelisted players
Fully configurable UI: waiting text, color, size and positions of all elements can now be edited via commands
Separate counter colors: the "current" and "required" numbers in the player counter (4/10) now have independent configurable colors
Missing names display: when players are missing to start, the mod shows a list of missing names (configurable how many to show)
Commands Added:
/waitingscreen whitelistmode <true|false> — Enable/disable whitelist mode
/waitingscreen missingnames showatmost
/waitingscreen missingnames max
/waitingscreen ui text
/waitingscreen ui color
/waitingscreen ui scale
/waitingscreen ui pos waitingtext
/waitingscreen ui pos playercount
/waitingscreen ui pos missing
/waitingscreen ui pos esc
/waitingscreen playercountcolor <current_hex> <required_hex> — Separate colors for the counter
Improvements & Fixes:
Thread safety: added volatile to shared fields and ConcurrentHashMap for collections accessed by multiple threads
Improved null checks: reinforced server/player null validations before sending packets
Language/Idiom fixes: improvements to strings and texts in commands
No Telemetry: removed MC telemetry dependency (removing TelemetryInfoScreen from allowed screens)
Death screen validation fix: fixed a case where the validation packet was sent when the player was on the death screen
Render color fix: fixed a bug where text color wasn't applied correctly (detected that parseColor with short inputs like 0x0000 gave alpha 0 → invisible)
Technical Changes:
Added UiConfigPayload to synchronize all visual config (text, color, scale, positions)
Added MissingNamesPayload to send the list of missing names to the client
Added getters in Waitingscreen.java and WaitingscreenClient.java for all UI fields
Refactored updatePlayerCount() to calculate whitelist differences and broadcast missing names only when they change

