[SPIGOT-7426] Bungee Chatcolor not supported in ChatPaginator Created: 12/Jul/23  Updated: 25/Dec/24

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Tuchan Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Attachments: PNG File broken.png     PNG File intended.png    
Issue Links:
Duplicate
is duplicated by SPIGOT-7427 (duplicate, delete pls) Bungee Chatco... Closed
Version: API 1.19.4-R0.1-SNAPSHOT
Guidelines Read: Yes

 Description   

ChatPaginator uses bukkit's ChatColor which leads to hex colors being translated into nulls,
rendering thw whole wordwrap function useless whenever working with hex colors.

https://github.com/SpigotMC/Spigot-API/blob/master/src/main/java/org/bukkit/util/ChatPaginator.java#L82-L88



 Comments   
Comment by Black Hole [ 12/Jul/23 ]

Bukkits ChatColor supports RGB colors, too. The referenced Github repo is very outdated. But the same error remains in current code: ChatColor.getByChar('x') will return null.
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/util/ChatPaginator.java#89

Generated at Sat Apr 05 10:22:39 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.