Package fr.andross.banitem.utils
Class Chat
java.lang.Object
fr.andross.banitem.utils.Chat
A chat utility class.
- Version:
- 3.2
- Author:
- Andross
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull String
Translate the color codes to make the string colored.static @Nullable String
revertColor
(@Nullable String text) Revert thecolor(String)
method.static @NotNull String
stripColors
(@NotNull String text) Remove the color codes on a string.
-
Method Details
-
color
Translate the color codes to make the string colored.- Parameters:
text
- the text to translate- Returns:
- a colored string
-
stripColors
Remove the color codes on a string.- Parameters:
text
- colored string- Returns:
- uncolored string
-
revertColor
@Nullable @Contract("!null -> !null; null -> null") public static @Nullable String revertColor(@Nullable @Nullable String text) Revert thecolor(String)
method.- Parameters:
text
- text- Returns:
- the uncolored text, with color codes
-