Class Utils
java.lang.Object
me.remigio07.chatplugin.api.common.util.Utils
me.remigio07.chatplugin.api.proxy.util.Utils
Proxy utils class.
-
Field Summary
Fields inherited from class me.remigio07.chatplugin.api.common.util.Utils
IPV4_PATTERN, MAIN_FOLDER, NIL_UUID, NOT_APPLICABLE, SECONDS_IN_A_DAY, SECONDS_IN_A_MINUTE, SECONDS_IN_A_MONTH, SECONDS_IN_A_WEEK, SECONDS_IN_A_YEAR, SECONDS_IN_AN_HOUR, STRING_NOT_FOUND, USER_AGENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdeserializeBungeeCordText(net.md_5.bungee.api.chat.TextComponent input) Deserializes the specified input to a plain text.static net.md_5.bungee.api.chat.TextComponentserializeBungeeCordText(String input) Serializes the specified input to a BungeeCord-compatible text.Methods inherited from class me.remigio07.chatplugin.api.common.util.Utils
addAndGet, arrayContains, arrayIndexOf, capitalizeEveryWord, getFreeStorage, getInetAddress, getListFromString, getMaxPlayers, getOriginalClass, getStringFromList, getTime, getTime, getTotalStorage, isFloat, isInteger, isLong, isNumber, isPositiveInteger, isPositiveLong, isValidIPv4, kilometersToMiles, kilometersToNauticalMiles, removeAndGet, removeFromArray, replaceCustomPlaceholders, replaceNumericPlaceholders, reverse, truncate
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
serializeBungeeCordText
Serializes the specified input to a BungeeCord-compatible text.- Parameters:
input- Input text- Returns:
- BungeeCord-compatible text
-
deserializeBungeeCordText
Deserializes the specified input to a plain text.- Parameters:
input- BungeeCord-compatible text- Returns:
- Plain text
-