Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

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

Open EtherealHavenSMP opened this issue 3 months ago • 4 comments

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.

EtherealHavenSMP avatar Sep 19 '25 00:09 EtherealHavenSMP

I would suggest using the /skull <owner> <player> command to give the player a skull

so the kit line item would become - /skull {USERNAME} {USERNAME}

JRoy avatar Oct 03 '25 09:10 JRoy

I would suggest using the /skull <owner> <player> command to give the player a skull

so the kit line item would become - /skull {USERNAME} {USERNAME}

First off, that command can only be used by players. Secondly, I would also suggest for the devs to fix it. It's a confirmed bug and I was told by their support to report it. There is no reason I need to use another method when this specific works for everyone that doesn't have an underscore in their name.

EtherealHavenSMP avatar Oct 03 '25 20:10 EtherealHavenSMP

Bump. "/skull " cannot be used in console/kits.

EtherealHavenSMP avatar Oct 31 '25 00:10 EtherealHavenSMP

Image

EtherealHavenSMP avatar Dec 09 '25 23:12 EtherealHavenSMP