[SPIGOT-6029] RGB Hex colors not respected with custom kick messages Created: 26/Jul/20 Updated: 27/Jul/20 Resolved: 27/Jul/20 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Legoman99573 | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | 1.16.1, hex, kick, rgb |
Version: | 1.16.1 |
Guidelines Read: | 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" |
Comments |
Comment by Black Hole [ 26/Jul/20 ] |
RGBSupport is not part of the Spigot-API. Please provide code to reproduce the issue using only Spigot-API. The guidelines that you accepted require you to provide the output of the /version command. |