Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Event to control who hears the dragon death sound #10918

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Lurkrul
Copy link

@Lurkrul Lurkrul commented Jun 19, 2024

Allows plugins to add/remove players from who will hear the dragon death sound.

While this has a niche use case, it will be helpful in those cases.

Servers that have their own customized enderdragon can use the event to change it to where all damage dealers will hear the noise.
This can also be used in the case where a server wants to allow players to ignore the dragon death sound.

@Lurkrul Lurkrul requested a review from a team as a code owner June 19, 2024 10:44
@Lurkrul
Copy link
Author

Lurkrul commented Jun 24, 2024

The requested changes have been made.

@NewwindServer
Copy link
Contributor

Potential expansion to GlobalSoundEvent to include wither spawn sound and end portal open sound?

Copy link
Member

@Machine-Maker Machine-Maker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This event should probably be "generalized" a bit. I think a more general event is probably better. You won't get the "dragon" context, but smth that fires for each player that receives a level event packet of any type might be useful. We have a type that represents level events (Effect). I'm not sure if that event would fire too often though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Changes required
Development

Successfully merging this pull request may close these issues.

4 participants