Skip to content

Conversation

triagonal
Copy link
Member

@triagonal triagonal commented May 11, 2020

This PR introduces an event to be called just before a private message is sent to a user. This event provides the message sender, the message recipient, and the contents of the message.

This event provides the possibility for greater customization of private messages, such as playing a sound or displaying a boss bar when a private message is received.

closes #726, closes #2097

@JRoy
Copy link
Member

JRoy commented May 11, 2020

Maybe you should let the message be altered via the event as well? I can see this being requested in the future plus it could add the ability for filter plugins to filter pms.

@triagonal
Copy link
Member Author

triagonal commented May 11, 2020

great suggestion @JRoy!!!

image

@pop4959 pop4959 added the type: enhancement Features and feature requests. label May 11, 2020
@mdcfe mdcfe merged commit d59fd71 into EssentialsX:2.x May 13, 2020
@mdcfe mdcfe added this to the 2.18.0 milestone May 13, 2020
@triagonal triagonal deleted the feature/private-message-event branch June 7, 2020 22:35
ressidell pushed a commit to ressidell/Essentials that referenced this pull request Apr 27, 2025
This PR introduces an event to be called just before a private message is sent to a user. This event provides the message sender, the message recipient, and the contents of the message.

This event provides the possibility for greater customization of private messages, such as playing a sound or displaying a boss bar when a private message is received, or filtering private message content.

Closes EssentialsX#726, closes EssentialsX#2097.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement Features and feature requests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add events for private messages [Request] Message Event

5 participants