Package fr.andross.banitem.utils
Class Chat
java.lang.Object
fr.andross.banitem.utils.Chat
A chat utility class
- Version:
- 3.2
- Author:
- Andross
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Chat
public Chat()
-
-
Method Details
-
color
Translate the color codes to make the string colored- Parameters:
text
- the text to translate- Returns:
- a colored string
-
uncolor
Uncolor a string totally- Parameters:
text
- colored string- Returns:
- uncolored string
-
revertColor
@Nullable @Contract("!null -> !null; null -> null") public static String revertColor(@Nullable String text) Convert all color codes back- Parameters:
text
- text- Returns:
- the uncolored text, with color codes
-