Skip to content

Bug with trying to parse the underscores inside usernames using {USERNAME} #6296

@EtherealHavenSMP

Description

@EtherealHavenSMP

Type of bug

Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?bytebin=JoJTFGZTtU

Error log (if applicable)

https://mclo.gs/yT5S0Jt

Bug description

Image|

Copy and paste from Discord:
Hello, a couple of my players are experiencing an issue where the kit I made that gives them their head is giving them a steve head, and in the name, it's including characters that aren't in the players username. Any idea on how to fix this?

  myhead:
    delay: 86400
    items:
    - playerhead 1 player:{USERNAME}

2.22.0-dev+21-e9da116 | Paper version 1.21.8-51-main@b6168b7

I had this specific player try on a vanilla client as well
I realize, it's only happening to players with _ in their name, it's auto adding \ before it.
I quoted - playerhead 1 player:{USERNAME} with " and ', but still occurs.

`- playerhead 1 player:Siedler32_ ` will give me the players head in this screenshot correctly, but this does not help me as I need one kit for everyone 

Steps to reproduce

Create a Kit to give a head of the kit command executor

Expected behaviour

For the head to be given with the skin of the player in the placeholder - and not forcing \ inside the name of the head.

Actual behaviour

Explained above...?

Additional Information

Was told to do a report on this from Jason in Discord.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: unconfirmedPotential bugs that need replicating to verify.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions