strip

fun strip(text: String): String

Strips color codes from the given string.

This method removes all Minecraft color codes from the string, returning the plain text. For example, "&cHello" will return "Hello".

Return

The plain text without any color codes.

Parameters

text

The string with color codes to be stripped.