DiscordSRV icon indicating copy to clipboard operation
DiscordSRV copied to clipboard

Name synchronization doesn't apply PlaceholderAPI placeholders when the player is offline

Open KnightWorldfr opened this issue 10 months ago • 1 comments

Expected behavior

I just want my players to have their Minecraft usernames linked to Discord. I'm using DiscordSRV on three backend servers with the same bot, but only one of them can actually sync the usernames.

Unfortunately, some PlaceholderAPI values randomly return as %xxx% instead of showing the actual value.

Image

Actual behavior

Image

Several placeholders down

Steps to reproduce

I'm currently running a Minecraft network using Velocity as a proxy. On the proxy, I have TAB-Velocity, and on all backend servers (e.g. lobby, survival, etc.) I have TAB-Bridge and DiscordSRV installed. I'm not running DiscordSRV on the proxy itself.

I'm encountering a weird issue: the nickname synchronization from DiscordSRV sometimes fails to resolve certain placeholders like %tab_tabprefix% or %titlecustom%, resulting in Discord nicknames like:

%tab_tabprefix%Princeofgame09

This issue happens randomly — it may affect only one player while it works fine for others, and sometimes the broken placeholder is different. It seems like the placeholders aren't fully resolved when DiscordSRV tries to sync the nickname.

Is this a known issue? Could it be due to timing, where DiscordSRV syncs before TAB or PlaceholderAPI has fully initialized for the player? Do you recommend any workaround (e.g. delaying nickname sync, using LuckPerms placeholders instead, etc.)?

Let me know if you’ve seen this before or if there's any way to improve compatibility with TAB in a Velocity + multiple-backend setup.

Thanks in advance!

Server software and version

proxy velocity + 3 backends paper 1.21.4

Checks

  • [x] I am not using an outdated version of DiscordSRV.
  • [x] I asked in DiscordSRV's Discord server to see whether this issue is in fact a bug that needs to be fixed.

Ticket number or message link to where you asked in DiscordSRV's Discord server about this

20919-r

Anything else

No response

KnightWorldfr avatar May 21 '25 19:05 KnightWorldfr

PlaceholderAPI placeholders are only replaced when players are online. Support for offline placeholder support/not syncing while offline could be added. Changing to enhancement instead of bug

Vankka avatar Jul 25 '25 19:07 Vankka