AuraDevelopmentTeam / BungeeChat2

A new way to send private, global or help messages and to do much more with chatting network wide!
https://www.spigotmc.org/threads/bungee-chat.93960
GNU General Public License v3.0
65 stars 43 forks source link

Color format problem on links #203

Closed RedstoneFuture closed 2 months ago

RedstoneFuture commented 1 year ago

Issue Description:

If a player tries to format a link that uses at least 2 letters as the name and at least 2 - 4 letters as the TLD with a slash at the end, then a &r after it will not work.

What happens:

grafik

What you expected to happen:

"Hello" in white, because of "&r".

Steps to reproduce:

  1. /msg <test user> &bte.de/&rHello
  2. /msg <test user> &bte.deee/&r Hello

Affected Versions:

Your most recent log or stack trace file where the issue was present:

BrainStone commented 2 months ago

Due to the way Bungee parses text with color codes, there's not much I can do unfortunately.

The only fix would be to completely reimplement chat color parsing and that's a fair bit beyond the scope.