Hi, i'd like to have two separate colors in the same text component, i tried to do it in the code below, but it doesn't seem to work.
StrTex =Component.text("ОСТЕРЕГАЙТЕСЬ МОЛНИЙ!")
.color(TextColor.fromHexString("FFFFFF"));
nameTex=Component.text("⚡ ГРОЗА!")
.color(TextColor.fromHexString("#ffd700"));
Bukkit.getServer().sendMessage(nameTex.append(StrTex));