Easier way to color text?

Greetings!

I would like to know if there is an easier way to make colored text other than using the Text.of method. I am quite new to Sponge and Java in general and I find making colored texts a bit annoying and confusing.

An optimal way would be to be able to use the minecraft color formatting codes such as &a for green and so on.

The plugin I am making has quite a long message and I’d like multiple different colors throughout the message and using the Text.of or Text.builder is way too confusing for me.

Thank you
-Spaxter

TextSerializers.FORMATTING_CODE.deserialize("&aColored text")
1 Like

Thank you so much! You just saved me hours of work!

1 Like