Package com.earth2me.essentials.utils
Class FormatUtil
java.lang.Object
com.earth2me.essentials.utils.FormatUtil
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatMessage
(IUser user, String permBase, String input) static String
formatString
(IUser user, String permBase, String message) static String
static String
parseHexColor
(String hexColor) static String
replaceFormat
(String input) static String
static String
stripEssentialsFormat
(String input) static String
stripFormat
(String input) static String
stripLogColorFormat
(String input) static String
stripMiniFormat
(String input) static String
stripPaper
(String input) static String
unformatString
(String message) static String
unformatString
(String message, EnumSet<ChatColor> supported, boolean rgb) static String
unformatString
(IUser user, String permBase, String message) static boolean
-
Field Details
-
IPPATTERN
-
-
Method Details
-
stripFormat
-
stripMiniFormat
-
stripEssentialsFormat
-
stripAnsi
-
stripPaper
-
formatMessage
-
replaceFormat
-
parseHexColor
- Throws:
NumberFormatException
- If the provided hex color code is invalid or if version is lower than 1.16.
-
unformatString
-
unformatString
-
unformatString
-
formatString
-
stripLogColorFormat
-
lastCode
-
validIP
-