Skip to content

Make the home list clickable in chat#2879

Merged
tastybento merged 2 commits into
developfrom
copilot/make-home-list-clickable
Mar 22, 2026
Merged

Make the home list clickable in chat#2879
tastybento merged 2 commits into
developfrom
copilot/make-home-list-clickable

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 21, 2026

Home names listed in chat (e.g. after an unknown home error or sethome) were plain text. Now each entry is a clickable chat component that runs /<topLabel> go <homeName> with a hover tooltip.

Changes

  • IslandGoCommand, IslandSethomeCommand, IslandDeletehomeCommand, IslandRenamehomeCommand — replaced sendMessage with sendRawMessage using [run_command:] and [hover:] inline markup for each home list entry
  • en-US.yml — added commands.island.sethome.click-to-teleport locale key for the hover text
  • Admin commands unchangedAdminDeleteCommand, AdminTeleportCommand, AdminTeleportUserCommand still use plain text since the player go command isn't appropriate in admin context

Approach

Click markup is constructed in code rather than embedded in locale strings, so all existing translations get clickable behavior automatically without requiring updates from translators. The home-list-syntax locale key is unchanged.

// Before
user.sendMessage("commands.island.sethome.home-list-syntax", TextVariables.NAME, s);

// After
user.sendRawMessage(
    user.getTranslation("commands.island.sethome.home-list-syntax", TextVariables.NAME, s)
        + "[run_command: /" + getTopLabel() + " go " + s + "]"
        + "[hover: " + user.getTranslation("commands.island.sethome.click-to-teleport") + "]");
Original prompt

This section details on the original issue you should resolve

<issue_title>Make the home list clickable</issue_title>
<issue_description>### Is your feature request related to a problem?

The list of homes is not that useful.

Describe the solution you'd like.

Image Make the list of homes that is provided in chat clickable so that if the home name is clicked the player will go there (run the island go command with that name)

Describe alternatives you've considered.

Using the homes panel.

Agreements

  • I have searched for and ensured there isn't already an open issue regarding this.
  • I have ensured the feature I'm requesting isn't already in the latest supported BentoBox build or Addons.

Other

No response</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…ommand

Modifies home list display in IslandGoCommand, IslandSethomeCommand,
IslandDeletehomeCommand, and IslandRenamehomeCommand to use clickable
text components. Each home name now has a run_command click action
(/<topLabel> go <homeName>) and a hover tooltip ("Click to teleport").

Adds new locale key commands.island.sethome.click-to-teleport for
the translatable hover text.

Fixes #2458

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Agent-Logs-Url: https://github.com/BentoBoxWorld/BentoBox/sessions/58eb3b51-0d65-487c-8499-14dc4e4714a6
Copilot AI changed the title [WIP] Add clickable functionality to home list Make the home list clickable in chat Mar 21, 2026
Copilot AI requested a review from tastybento March 21, 2026 22:15
@tastybento tastybento marked this pull request as ready for review March 22, 2026 02:31
@sonarqubecloud
Copy link
Copy Markdown

@tastybento tastybento merged commit b529fe4 into develop Mar 22, 2026
3 checks passed
@tastybento tastybento deleted the copilot/make-home-list-clickable branch March 22, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the home list clickable

2 participants