Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6029

RGB Hex colors not respected with custom kick messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • 1.16.1
    • Yes

      When you try to use hex colors to kick someone from the server. It seems to not respect using ChatColor.Of. The method used works just fine with chat, but isnt respecting custom kick messages. It would only use the last letter or number in the hex code

      Snippet of what i want to use:

      offender.kickPlayer(RGBSupport.translateHexCodes("&#rrggbb[&#r1g1b1You were Kicked&#rrggbb]&#r2g2b2: &r" + reason, this.plugin));
      

      Uses "&#rrggbb"

            Unassigned Unassigned
            Legoman99573 Legoman99573
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: