Class LegacyUtils
java.lang.Object
io.github.miniplaceholders.api.utils.LegacyUtils
Legacy utils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer
Legacy serializer with hex support -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Component
parsePossibleLegacy
(@Nullable String string) Parse a string with possible legacy symbols
-
Field Details
-
LEGACY_HEX_SERIALIZER
public static final net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer LEGACY_HEX_SERIALIZERLegacy serializer with hex supportUse this as the last available alternative, it is recommended to use MiniMessage instead of this serializer
-
-
Method Details
-
parsePossibleLegacy
Parse a string with possible legacy symbols- Parameters:
string
- the string- Returns:
- a parsed string
- Since:
- 1.0.0
-