Repository navigation
Release 3.25.0 - #3142
Open
tastybento wants to merge 31 commits into
Open
Release 3.25.0#3142tastybento wants to merge 31 commits into
tastybento wants to merge 31 commits into
Conversation
Touch-screen Bedrock players can only tap, which arrives as a left click, so kick, set owner, leave, accept, reject, coop and trust were out of reach. - Team panel: a left or right click the template gives no action to opens a small menu with the available actions as buttons. - Invite panel: a MODE button changes what a left click on a player does (invite, coop or trust). The shift and right click shortcuts are unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
…am-panel Make the team panels usable with a plain click (#3137)
Paper has deprecated org.bukkit.conversations for removal. Core used it in 14 files and eight addons use it through copies of ConversationUtils. New package api.prompts asks a player for text, an id, several lines, a number or a confirmation. A prompt is shown as a dialog with a text box where dialogs are supported and island.dialogs.prompts is on, and is asked in chat otherwise, through a core-owned AsyncChatEvent listener. Answers are validated and asked for again when wrong. Core's own prompts now use it: home renaming, the team invite search, the settings reset confirmation, the blueprint bundle name, description and commands, and the picker search, which now also works without dialogs. The old conversation classes and the Conversable overloads on BlueprintManagementPanel stay, deprecated for removal. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
Split the starting name and the length check out of askName, drop the nested ternary, and use the MANAGEMENT constant throughout. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
The search prompt now starts from the current search text, and submitting it empty clears the search instead of being refused. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
Add a prompts API to replace Bukkit conversations
The team panel compared the viewer with a member through User#equals, which led Sonar to report a possible null member in Island#getRank. Compare UUIDs instead. The item key pattern matched trailing whitespace after a lazy quantifier and could backtrack; the caller already trims. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
Fix the two open Sonar reliability issues
A right click on a bundle in the island creation panel shows its overworld blueprint in front of the player as block display entities that only that player can see. Only exposed blocks are drawn, and a large blueprint is drawn more coarsely to stay under island.blueprint-preview.max-blocks. Previews can be switched off in config, and a bundle can be excluded in the blueprint management panel. Spike only: en-US locale keys only, no tap-only way to open a preview. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
Replaces the miniature. The player is taken to an empty preview world in spectator mode, kept inside a box around the blueprint, and sent the blueprint's blocks as client-side blocks. Any command, the time limit or leaving the server puts them back. The fill block of compact blueprints is now included, which the miniature left out. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
A spectator can fly into blocks and see what is hidden inside. The player now flies in adventure mode: their client treats the blueprint's blocks as solid. Client-only night vision lights blocks the client leaves dark. Interaction and item drops are blocked during a preview. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
… others The per-bundle setting is now three-state. Unset means the default bundle can be previewed and any other cannot, so bundles an admin made stay hidden on upgrade. A choice made in the management panel always wins. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
Adds the nine preview keys to the 23 other locales and unit tests for the preview's start, end, time limit and listeners. The saved return location now uses a fixed key so it does not depend on the plugin instance. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
Let players preview a blueprint bundle before choosing it (#2914)
Match the download site catalogue: add game modes, DeathChest, CheckMeOut, FarmersDance, LagBudget and TopBlock, and say where addons go and where to download them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add ChunkBlock, Parkour, StrangerRealms and TradeWinds, and link ADDON.md relatively. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
File.getParentFile() returns null for a path with no parent, which Sonar flagged as a possible NullPointerException (javabugs:S2259) and which was the one open bug holding the reliability rating at C. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
When the server loads a Pladdon from outside plugins/BentoBox/addons, it now stays inert, moves its jar into the addons folder, logs a boxed console warning (again once startup finishes), and tells operators in game when they join. AddonsManager skips the just-moved jar for the rest of the boot so a second copy is not loaded. New general.misplaced-addon locale keys are translated into every bundled locale. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjXZr4SH6E9JGWnfMLj
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjXZr4SH6E9JGWnfMLj
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjXZr4SH6E9JGWnfMLj
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjXZr4SH6E9JGWnfMLj
When a home was unsafe, the search for a safe spot started at the island's protection centre and took the first safe block it came across in the chunk. The centre can be far from where players live. In Boxed it is deep underground, so a player whose home had been dug out was put in a cave. The search for an island now starts at its home when it has one in the island's world, and a non-portal search picks the safe spot nearest to the target instead of the first one found. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
GameModeAddon gains three methods, all with defaults that keep the current behaviour: - getNewIslandLocationStrategy(user, bundle, oldIsland) lets a game mode place a new island depending on the blueprint bundle, and refuse it by throwing before anything is created. - getBundleAvailability(user, bundle, oldIsland) lets a game mode lock or hide a bundle. The creation panel shows a locked bundle with the reason and no click action, and leaves out a hidden one. Create and reset check it too, and reset checks before the old island is touched so a refusal no longer leaves the player without an island. - getIslandLabel(user, island) names an unnamed island in the go command and the homes panel, in place of the owner's name and a number. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
GameModeAddon.getRequestedSettings(addonName) returns the settings a game mode asks another addon to use in the game mode's worlds, keyed by the other addon's config paths. RequestedSettings applies such requests to a copy of an addon's settings, so the admin's config is never changed and other game modes are not affected. The addon that owns the settings decides which paths may be asked for and whether to honor requests at all. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
- Do the distance arithmetic in the safe-spot search in long - Drop two conditions that could never apply - Split the requested value conversion to cut its complexity Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
…-strategy Game mode hooks: island placement, bundle availability, labels, settings requests; nearer safe-spot search
|
This branch has not been deployed
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.



Release 3.25.0.
Changes since 3.24.0
Typed input
world.bentobox.bentobox.api.prompts) for asking a player for text, an id, several lines, a number or a confirmation. A prompt is a dialog with a text box where the server supports dialogs, and a question in chat otherwise. It replaces Bukkit's conversation API, which Paper has deprecated for removal. Newisland.dialogs.prompts(default true); set it to false to always ask in chat.blueprints.conversation.*,NamePrompt,ConfirmPrompt) and theConversableoverloads onBlueprintManagementPanelstill work but are deprecated for removal.Team panels
MODEbutton that changes what a left click on a player does: invite, coop or trust. It is only shown to players who can do more than invite.Other fixes
Notes
island.dialogs.prompts, with a default that applies if the key is absent.team_invite_panel.ymlgains theMODEbutton at row 1, column 7. A server with an existing copy of that file does not get the button until it adds it or regenerates the file. The team panel action menu needs no template change.prompts.*, the blueprint prompt titles,commands.island.team.gui.actions.*andcommands.island.team.invite.gui.mode.*) are in en-US and translated in all 23 other bundled locales.🤖 Generated with Claude Code
https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe