IntellectualSites / PlotSquared

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

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

Open PapiCapi opened 2 months ago

PapiCapi commented 2 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 1 month 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 1 month 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 1 month 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.