Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Bukkit#broadcastMessage doesn't make urls clickable

Open rexlManu opened this issue 2 years ago • 2 comments

Expected behavior

urls are clickable

Observed/Actual behavior

In latest spigot 1.19.2 urls are clickable when sent with Bukkit#broadcastMessage(String message)

In paper this doesn't work anymore.

Steps/models to reproduce

event.getPlayer().sendMessage("https://example.com"); // clickable
Bukkit.broadcastMessage("https://example.com"); // not clickable

// in vanilla spigot, both messages are clickable

Plugin and Datapack List

irrelevant

Paper version

every paper version with advencture until now

Other

No response

rexlManu avatar Aug 17 '22 15:08 rexlManu

Mabye you can use the minimessage format

sovtec avatar Oct 11 '22 09:10 sovtec

Mabye you can use the minimessage format

Yes but the functionality is different from spigot and paper. That is the reason why i reported it here

rexlManu avatar Oct 12 '22 16:10 rexlManu

Similar to https://github.com/PaperMC/Paper/pull/6254, we aren't interested in adding functionality which "changes" a string automatically. Instead links should be turned into click events on components by plugins themselves instead of some automatic system.

Machine-Maker avatar Dec 15 '22 07:12 Machine-Maker