Repository navigation
Ask for input with BentoBox prompts instead of Bukkit conversations - #467
Merged
Merged
Conversation
Paper has deprecated org.bukkit.conversations for removal. ConversationUtils keeps its method signature and now delegates to the prompts API added in BentoBox 3.25.0, which shows a dialog where the server supports one and asks in chat otherwise. Requires BentoBox 3.25.0. Version 2.32.0. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Why
Paper has marked
org.bukkit.conversationsas deprecated for removal. This addon used it, throughConversationUtils, every time it asked a player to type something.What
ConversationUtilskeeps its method signatures, so no panel code changes, and now hands the work to the prompts API added in BentoBox 3.25.0 (BentoBox#3140). The player gets a dialog with a text box where the server supports dialogs, and is asked in chat otherwise.Callers get the same answers as before: the value on success, and
null(orfalsefor a confirmation) when the player cancels or does not answer.Behaviour changes
island.dialogs.prompts: falsein BentoBox's config to keep everything in chat.prompts.*). This addon's ownconversations.confirm-string,deny-string,exit-string,cancel-string,numeric-only,not-valid-valueandprefixkeys are no longer used.Requires BentoBox 3.25.0
bentobox.versionis3.25.0-SNAPSHOTbecause 3.25.0 is not released yet. Change it to3.25.0before releasing this addon.Testing
ConversationUtilsTestrewritten (3 tests): answer, cancel, and a second question replacing a waiting one without stacking (the chunkblock value search causing player confusion #451 case). Full suite: 275 pass.Level only has
createStringInput(the value panel search), so the locale notes above apply only tolevel.conversations.prefix,cancel-stringandcancelled.Version
2.31.0 → 2.32.0, because 2.31.0 is already released and this raises the minimum BentoBox to 3.25.0.
api-versioninaddon.ymlis now 3.25.0.🤖 Generated with Claude Code
https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe