Forums » Bugs
Hex Color codes no longer work
Not sure if this is intentional, but it seems like Hex Color codes have stopped working, and now displays the color code infront of the test instead, for example: 32faaaUser has entered the sector
Intel Core i3-7100
4GB RAM
64-bit OS
Windows 10
Intel Intergrated graphics
Intel Core i3-7100
4GB RAM
64-bit OS
Windows 10
Intel Intergrated graphics
Is this from a plugin? We recently changed the name of the rgbtohex() function, thinking no plugins used it. We'll have to change it back.
local function colorr()
local mat = math.random(1, 255)
local mat2 = math.random(1, 255)
local mat3 = math.random(1, 255)
local funnycolor = ""..rgbtohex(mat.." "..mat2.." "..mat3)
return funnycolor
end
I use this and like nick said the code prints in front of the msg and no color change
local mat = math.random(1, 255)
local mat2 = math.random(1, 255)
local mat3 = math.random(1, 255)
local funnycolor = ""..rgbtohex(mat.." "..mat2.." "..mat3)
return funnycolor
end
I use this and like nick said the code prints in front of the msg and no color change
We had renamed rgbtohex to rgbtohexcolor and made rgbtohex return the raw hex without the \127 code.
There are a number of plugins that use rgbtohex. Just a few: Catalog, RadarColor, Show Players In Sector, Trade Assistant, MAID.
Trade Assistant has become non-functional since 1.8.489 and it still doesn't work