IntellectualSites / PlotSquared

PlotSquared - Reinventing the plotworld
GNU General Public License v3.0
548 stars 754 forks source link

Prevent players in plot chat to see messages from ignored players #4412

Open PapiCapi opened 6 months ago

PapiCapi commented 6 months ago

What feature do you want to see added?

Currently if you ignore a player with Essentials, you still see his messages in plot chat. It would be cool to prevent this behaviour as Essentials is already a softdepend.

Are there any alternatives?

Maybe create a PlotChatEvent or something like that so plugins could hook into it and handle the cancellation.

Anything else?

No response

RedstoneFuture commented 6 months ago

Note: The PlotSquared (Bukkit) API includes a onChat Event (JavaDoc).

Since the ignore feature in this case comes from Essentials (and it is not a feature that many other plugins include), I suggest that Essentials or an Add-On for Essentials should handle it with the PlotSquared API.

PierreSchwang commented 5 months ago

I'm unsure on that as well - I mean, PS already interacts with Essentials so it wouldn't be that big of an overhead. But there must be some kind of line to which support can be put natively into PS and which should be done by 3rd party plugins / addons.

Some input of @IntellectualSites/plotsquared-team would be appreciated before I do anything with the issue

NotMyFault commented 5 months ago

I'm unsure on that as well - I mean, PS already interacts with Essentials so it wouldn't be that big of an overhead. But there must be some kind of line to which support can be put natively into PS and which should be done by 3rd party plugins / addons.

Some input of @IntellectualSites/plotsquared-team would be appreciated before I do anything with the issue

Surely, we can do that. Similar to how EssentialsX' vanish works (canSee iirc), which we support through the API too, we can respect the proper server API here as well.

PapiCapi commented 3 months ago

Hello, i've been searching how Essentials prevents ignored players from seeing messages and it seems that :

So, it seems that using the server API, there is no method that could fit the needs. Do you want to use the Essentials API to solve this issue ?