Add events for private messages
funniray opened this issue ยท 3 comments
It would be nice to have an event for private messages that would let you see who the PM sender is, the recipient and then it would let you be able to cancel the event. This would be useful for other plugins that let you ignore and then it would also let you be able to make like a friends only thing. I feel like this along with events for things that interact with other players (like even TPA) would be nice.
If you use a plugin that takes over private message functionality and offers an ignore feature, you'll have exactly what you're looking for. Other chat plugins also have better API support. Alternatively, you can intercept the chat packet with protocollib.