EssentialsX

EssentialsX

2M Downloads

Allow {username} in kit names {player} breaks anything after it

TomLewis opened this issue ยท 2 comments

commented

I want to be able to name a kit item after a user but if your user has a prefix then it will break/stop any other text being displayed after it, this is for name and lore of items.
For example.

gunner_rankup:
    delay: -1
    items:
      - 261 1 ARROW_FIRE:2 Name:&4Gunner_Bow lore:{PLAYER}|Gunner_Bow

Where it says {PLAYER} gunner bow, if the user has a prefix, which most do, then the "Gunner Bow" will not be displayed at all.

commented

I'm assuming this would be caused not by the prefix itself, but the spaces introduced between the prefix and the player name. The format of lore: requires that underscores be used between each word, not spaces.

Needs further testing to confirm.

commented

I posted this 3 years ago.
I think this must have been solved, as Ive been using {PLAYER} in my kit lore for years now.