[SPIGOT-5916] getLastColors does not work with the new legacy rgb color hack Created: 01/Jul/20 Updated: 16/Mar/23 Resolved: 16/Mar/23 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Gero Cammans | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 2 |
Labels: | None |
Attachments: |
![]() |
Version: | git-Spigot-4d9262c-3b9cf0f (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT) |
Guidelines Read: | Yes |
Description |
org.bukkit.ChatColor.getLastColors("§x§1§2§3§4§5§6") returns "§6" but it should return "§x§1§2§3§4§5§6". On a side note: It would be useful if this method would be added to Bungee Chat API too. |
Comments |
Comment by Marvin Rieple [ 16/Mar/23 ] |
Made a PR for this: bukkit#823 |
Comment by liam Carney [ 27/Jan/22 ] |
Can confirm the same Issue. I use this method as i need to capture the current state of text when applying Unicode Emoticon replacement via a chat plugin (See attached image). It hasn't really been an issue before hand, but it would be useful if the method was extended to now support RGB as well. I can confirm that the other modifiers (Bold, Underlined, Italics, Strikethrough, Magic) are still all applied and captured correctly. |
Comment by Gero Cammans [ 02/Jul/20 ] |
To split text into multiple lines and keeping the format. |
Comment by md_5 [ 01/Jul/20 ] |
Just curious, what do you use this method for? |