sdlink icon indicating copy to clipboard operation
sdlink copied to clipboard

[BUG] Player Placeholders in embed returning wrong player information with Access Control

Open hellhound-bot[bot] opened this issue 4 months ago • 1 comments

Reported By: HypherionSA (hypherionsa) Original Message: View On Discord

Issue Description:

.replace("%player_avatar%", this.author.getRealPlayerAvatar())
.replace("%player_name%", StringEscapeUtils.escapeJson(this.author.getRealPlayerName().replace("\\_", "_")))

Hmmmmmmm. It's supposed to use the mc name and pfp even with linked names. This might actually be a bug. I'll check it out when I have time


Additional Information (Added by HypherionSA): This needs testing, but it seems like these two placeholders are returning the wrong player information when access control is used. It's returning the linked account information, instead of the mc information

hellhound-bot[bot] avatar Aug 24 '25 10:08 hellhound-bot[bot]

Only %player_avatar% is affected. The player name is showing correctly

hypherionmc avatar Aug 24 '25 20:08 hypherionmc