Add sound effects

This commit is contained in:
William committed 2022-08-24 20:19:10 +01:00
1 parent 7b1930e554
commit 7d4dc6f11d
5 files changed
+33 -4

No files matched your search

@@ -82,6 +82,13 @@ public abstract class OnlineUser extends User {
*/
public abstract void sendMinecraftMessage(@NotNull String translationKey);
/**
* Play the specified sound to this player
*
* @param soundEffect the sound effect to play. If the sound name is invalid, the sound will not play
*/
public abstract void playSound(@NotNull String soundEffect);
/**
* Teleport a player to the specified {@link Location}
*