Repository navigation
Backlog
Labels
Description
Summary
In a future release (post-3.3.0), remove the experimental Geyser-Anvil-Patch feature (in-memory Geyser-Spigot patching and /cmdp patch Geyser-Standalone JAR patching) and instead provide an opt-in configuration option allowing Bedrock players to substitute Anvil UI prompts with native Geyser/Floodgate Forms.
Motivation
- Runtime translator replacement and standalone JAR patching couple CommandPrompter to Geyser internals and specific Geyser builds, require custom Bedrock resource pack generation, and force server restarts and manual JAR rebuilds.
- Using native Geyser/Floodgate Forms (Cumulus) for Anvil text input avoids brittle Geyser internals patching and delivers a native Bedrock UX.
Scope
1. Remove the Geyser Anvil Patch feature
- Config & Commands:
- Remove
Geyser-Anvil-PatchfromCommandPrompterConfigand its reload warning check inReloadCommand. - Remove
/cmdp patch(PatchCommand, registration inPromptRootCommand,promptpaper.patchinpaper-plugin.yml, andcommand.patch.*locale keys inmessages_en_US.properties).
- Remove
- Geyser Patcher & Translator Code:
- Remove
dev.cyr1en.promptpaper.hook.geyser.*(GeyserAnvilPatch,PatchedAnvilTranslator,PatchedAnvilContainer,PatchedAnvilUpdater,GeyserStandaloneSupport,StandaloneJarPatcher,AnvilPatchProtocol,GeyserAnvilDefinitions,BedrockAnvilAppearance,BedrockAnvilCarrier,BedrockAnvilItems,BedrockAnvilPresentation), patch wiring inGeyserHookandCommandPrompter, andbedrock-anvil-icons.properties.
- Remove
- Build & Packaging:
- Remove the
geyser-spigot-compat/geyser-standalone-compatIvy repositories and dependencies,standalone/standaloneTestsource sets, and nestedcompat/geyser-standalone-patch.jarpayload packaging inprompt-paper/build.gradle.kts.
- Remove the
- UI Plumbing:
- Remove
geyserAnvilPatchconfig/presentation plumbing inAnvilPromptScreen,PlayerUIScreen, andprompt-ui-26.{1,2,3}(FrameworkAnvilScreen,AnvilInventoryImpl), keeping standard Bedrock player detection (BedrockUtil) as needed.
- Remove
2. Add opt-in Geyser Forms substitution for Anvil UI
- Add a configuration toggle allowing admins to opt in to substituting Anvil UI prompts with a Geyser/Floodgate Form (Cumulus
CustomForm) for Bedrock players. - Support form substitution for both
AnvilPromptScreenandPlayerUIScreensearch prompts when enabled and a Geyser/Floodgate session is available. - Preserve prompt title/prompt text, input validation, cancellation handling (closing/dismissing the form cancels the prompt), and session timeout/cleanup semantics.
- Fall back gracefully to the standard Bedrock anvil / chat flow when disabled or when the Geyser/Floodgate Forms API is not present.
Target Release
Deferred to a later version (PR #118 / 3.3.0 stays as-is).
Activity