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

RGB Hex colors not respected with custom kick messages

    XMLWordPrintable

Details

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

    Description

      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"

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: