static Component formatColoredValue(String value) {
        boolean containsLegacyFormattingCharacter = value.indexOf(LegacyComponentSerializer.AMPERSAND_CHAR) != -1
                || value.indexOf(LegacyComponentSerializer.SECTION_CHAR) != -1;

        HoverEvent<Component> hover = HoverEvent.showText(text(value, WHITE));

        if (containsLegacyFormattingCharacter) {
            return LegacyComponentSerializer.legacyAmpersand().deserialize(value).toBuilder()
                    .hoverEvent(hover)
                    .build();
        } else {
            return MiniMessage.miniMessage().deserialize(value).hoverEvent(hover);
        }
    }
A collection of formatted messages used by the plugin.
common/src/main/java/me/lucko/luckperms/common/locale/Message.java