-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
feat: Add primitive support for sound api #1422
base: dev/3.0.0
Are you sure you want to change the base?
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
4c5911e
to
00d4dc6
Compare
192a88d
to
e91c70a
Compare
e91c70a
to
87b0e57
Compare
What is the state of this? I would like to have this feature very much. |
From my end, it is finished, although I would think it makes more sense to make the methods fail silently again. |
fix: implement the correct playSound method fix: bumped "since" version
We could also look into playing sounds from another player, but if so, I think that should be discussed first. |
@astei Could this be reviewed pls. |
@4drian3d Since it has been approved, can this also be merged? |
What is the state of this? We are currently discussing implementing this ourselves, but we would way prefer having it implemented in upstream. |
Apart from maybe adding Javadoc to the RegisteredServer, this PR is ready from my end. |
@4drian3d Do you think additional Javadoc entries are required? Is there an estimate when this might get merged? |
With this PR, the Adventure-provided sound API is partially implemented.
It adds the ability to play sounds from a player (currently only for itself) and to stop sounds,
while making the methods fail silently if the sound can't played/stopped.
What this PR implements:
What this PR doesn't implement:
- A method to play back (custom) sounds for a specific player (at the player itself) for players with version 1.19.2 and below
- A method to stop (custom) sounds for players with version 1.19.2 and below
Clarification:
This PR only implements a sound API for version 1.19.3+ because only in this version is the server able to play a (vanilla) sound for a player without requiring a version-dependent id for the sound.