wikmor / LPC

A chat formatting plugin for LuckPerms.
https://www.spigotmc.org/resources/lpc.68965
The Unlicense
31 stars 30 forks source link

Towny can't modify chat #22

Open roxandtol opened 2 years ago

roxandtol commented 2 years ago

Sometimes, LPC doesn't allow other plugins to modify chat, for example, in Towny, when you're talking in a different channel, there isn't a town tag

antibitcoin commented 2 years ago

it does not let Trollboss also modify chat, for example on trollboss there is a feature called garbage which makes the user say garbage when he talks, with LPC it let the user say his real chat instead which means yeah it wont let plugins modify chat.

antibitcoin commented 2 years ago

Sometimes, LPC doesn't allow other plugins to modify chat, for example, in Towny, when you're talking in a different channel, there isn't a town tag

however I think your issue is unrelated you can add the placeholder for towny in LPC but as for my issue I have no idea how to fix it, I shouldn't have opened a different issue.

P3ridot commented 1 year ago

Cause of that problem is that the chat listener is using event priority set to HIGHEST - it means that LPC set chat formatting after all plugins modified already - they simply can't override placeholders in LPC chat formatting. Actually it's really stupid that LPC uses event priority HIGEST and it should be changed to LOWEST

KenterWasTaken commented 2 months ago

I have the same issue