mojira.dev
MC-299920

Clicking on a tellraw link triggers popup: confirm command execution

Steps to reproduce the issue:

  1. /scoreboard objectives add RangerSelect dummy

  2. /tellraw @s [{text:"Sharpshooter",color:"gold",click_event:{action:"run_command",command:"/scoreboard players set @s RangerSelect 1"}}]

  3. Press T on your keyboard to open chat, click on the ability “Sharpshooter”.

    Expected Result:

Function runs as expected. User’s RangerSelect score is set to 1.

Actual Result:

Produces a popup [Confirm Command Execution: “You are trying to execute a command that requires elevated permissions. This might negatively affect your game. Are you sure?” (Then the command to run followed by Y/N buttons)}

In other words, the new version of my game makes my datapack much worse and every time you want to upgrade an ability or pray to a deity, you have to confirm that you indeed want to execute that command.

The commonly suggested bypass for this is using /trigger, but that is not feasible when there are 50 abilities.

Note: The /trigger bypass also works for a user with malicious intentions, rendering this security feature pointless.

Here’s a different bypass, maybe, making a /dialog for it? However, it just looks ugly and takes you out of the game experience, which is gonna suck when I get around to adding dialogue. So of course I’m gonna use /tellraw instead. It just looks so much better.

Please note: This is not a suggestion - this is a bug report. There is no way to conceptualize this idea other than a glaring, huge mistake. This should definetely not be an issue for simple scoreboard commands and is seen negatively by the community, as it actively annoys map and datapack makers.

Comments 1

This is a change request, as the confirmation prompt was added intentionally. Change requests should be made through feedback channels, such as by upvoting this post on the Feedback Discord.

Harvey

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8

Retrieved