Skip to content

Feature request: inline player head variable in chat messages #3670

@RapidGravy

Description

@RapidGravy

Summary

Hi, I wanted to ask if there is or could be a supported way to let players post a player head inline in chat.

Example of what I mean: [head:Notch] or something similar, and it would render the player head in chat like the Image_Head format option does.

The reason I am asking is because on ChatControl 11.8.11 I noticed an accidental way this could happen. If a player named an item something like: /itemname <head:Notch> and then used the [item] variable while holding that item, ChatControl would parse that and render the player head in chat.

I patched the item variable so item names escape minimessage tags because I do not want item names to be able to inject minimessage into chat. That fixes the abuse side of it but the player head part was actually a nice feature. I just wish it was available in a more supported way instead of through item names.

I tried a simple rule like replacing: [head:Notch] with <head:Notch> but that did not work. The token just disappeared from the message so im guessing that Image_Head is only supported as a format part and not as inline message text?

Would it be possible to support an inline token like [head:playername] that renders a player head in normal chat messages? Maybe this is too out of scope for the current variable system, but a configurable message variable that can take a player name argument would also work.

The main goal is just to let players include player head icons in normal chat messages, without allowing general minimessage parsing or letting item names inject tags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions