AuraDevelopmentTeam / BungeeChat2

A new way to send private, global or help messages and to do much more with chatting network wide!
https://www.spigotmc.org/threads/bungee-chat.93960
GNU General Public License v3.0
65 stars 43 forks source link

Luckperms Prefix Stacking does not apply to placeholder #193

Closed Dead-Doctor closed 3 years ago

Dead-Doctor commented 3 years ago

Issue Description: Incorrect LuckPerms Prefix

What happens:

It only uses the main Luckperms prefix

What you expected to happen:

Response to the prefix stacking settings: Wiki

Steps to reproduce:

  1. Use %prefix% placeholder in formating
  2. Set "start-spacer" to something other than ""
  3. It is not going to show up in game

Affected Versions:

BrainStone commented 3 years ago

Where did you configure that? On the Bungee or the Spigot servers?

Dead-Doctor commented 3 years ago

Where did you configure that? On the Bungee or the Spigot servers?

On both. I am also using an mysql database to sync prefixes.

BrainStone commented 3 years ago

Does the spacer show when you run /lpb user <user> info?

Dead-Doctor commented 3 years ago

Where did you configure that? On the Bungee or the Spigot servers?

It also works with the tab plugin(TAB by Neznamy which uses the placeholder API and a Bungeecord Bridge Plugin) i use.

I looked into the code from bungeechat(LuckPerms5 hook) and it only ckecks the prefix metadata.

Dead-Doctor commented 3 years ago

Does the spacer show when you run /lpb user <user> info?

No

BrainStone commented 3 years ago

Then it's either not configured properly on the Bungee, or LP has a bug.

If that spacer shows in that command and not in BungeeChat, there's a bug.
I believe you only have it configured correctly on the backend servers, but not on the Bungee. TAB uses the prefix data from the backend servers and not the Bungee. BungeeChat uses the data from the Bungee.

Dead-Doctor commented 3 years ago

Thanks. You were right.

BrainStone commented 3 years ago

No problem. Happy to help :)