SkriptLang / Skript

Skript is a Spigot plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
https://docs.skriptlang.org
GNU General Public License v3.0
1.06k stars 367 forks source link

Links in plain chat using variables / expressions does not work #3377

Closed WilliamPlays0402 closed 4 years ago

WilliamPlays0402 commented 4 years ago

Description

I cannot use links with variables in them. Looked at issue #501 and doing that worked, but when I put any variable or expression in it, it failed.

Test skript:

command /uuid <offline player> permission: op trigger: message "<link:http://namemc.com/profile/%arg-1's uuid%>&3Namemc site<reset>

It sends <link:http://namemc.com/profile/(your-uuid)>&3Namemc site

Steps to Reproduce

  1. Make a new file named test.sk
  2. Paste the script as mentioned above
  3. Run /sk reload test
  4. Run /uuid
  5. Click on the 'Link'

Expected Behavior

A window should have popped up saying Are you sure you want to open this website http://namemc.com/profile/ Never open links from people you don't trust Yes Copy to clipboard No

Server Information

fednelpat commented 4 years ago

Try using send formatted instead of message

WilliamPlays0402 commented 4 years ago

Try using send formatted instead of message

Works, thank you so much!