plugins/DuneMenus/docs/SERVER-PACK-READINESS.md

2 KiB

Server-owned pack readiness correction

Objective: allow the existing menu presentation after the required, pinned central pack has genuinely loaded in Paper configuration phase.

Scope: GUI readiness only. No artwork, JARVIS, economy, permissions, gameplay or second pack offer. Existing server configuration must pass the exact URL/hash/UUID pin validation before configuration status can seed readiness.

Evidence: the owner's client loaded central UUID before lobby join, then the menu reported artwork unavailable. On exact Paper 26.2-135, ServerConfigurationPacketListenerImpl.handleResourcePackResponse records Connection.resourcePackStatus but emits no Bukkit PlayerResourcePackStatusEvent. CraftPlayer.getResourcePackStatus reads that connection status after join. The previous GUI listened only for the later play-phase event.

Implementation: read actual connection status at join and for already-online players during adapter startup; only server-owned SUCCESSFULLY_LOADED seeds readiness. Later matching pending/failure/unload statuses revoke readiness. Other UUIDs never grant readiness. Quit clears all state; the next backend must establish its own connection status. MCGUI.hasPack remains required by menu presentation. Stacked legacy mode continues to require its own matching event.

Acceptance/tests: configuration-only success without a player event; all non-success/null statuses blocked; foreign UUID isolation; legacy overlay isolation; later failure/pending invalidation; reconnect/backend transfer lifecycle. Run full GUI tests/build and canonical plugin/pack CI at exact commit. Coordinator alone deploys the built artifact, then verifies server readiness log and owner menu rendering. Local tests are not connected-client proof.

Runtime evidence inspected read-only: existing isolated Paper26.2-135 JAR and API. No live host changes made from this chat. Current lobby/Arrakis77cf canaries retained; other four on hold. This correction ships GUI1.1.35; pack artwork remains byte-identical to77cf, under the new immutable source filename.