EssentialsX

EssentialsX

2M Downloads

Kit {player} placeholder inconsistent

Kakifrucht opened this issue ยท 2 comments

commented

While for normal items that are given, you have to use the placeholder {PLAYER} capitalized, using the same placeholder in commands within the kit will result your name with an appended r at the end of the name. You have to use {player} to make it work. This is an unnecessary inconsistency.

commented

When I wrote the code for the commands in kit, I didn't realize that ess normally uses all uppercase for that. I don't want to break what I have now, but I could add {PLAYER} as an option on top of {player} if you think that would be a wise choice, seems odd though.

commented

This just requires adding another .replace:

command = command.replace("{player}", name);